We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Docking Manager - Bring Control to Front

Thread ID:

Created:

Updated:

Platform:

Replies:

40501 Feb 3,2006 05:07 PM Feb 15,2006 09:18 AM Windows Forms 7
loading
Tags: Tools
Bryant Cobarrubias
Asked On February 3, 2006 05:07 PM

Hello. I have a form with two controls along the bottom. Both controls are pinned with the second control visible. (The first control is ''under'' the second.) I need to force the first control to display at run time. I tried the ActivateControl method. Any ideas? Thanks, Bryant

Bryant Cobarrubias
Replied On February 3, 2006 05:45 PM

I should have posted this message under the Essential Tools section.

Vijayanand S [Syncfusion]
Replied On February 6, 2006 05:48 AM

Hi Bryant, Sorry for the delay in responding. I am afraid, I was not able to understand your requirement exactly. However I have created a test sample for regarding your requirement. Please take a look at the attached sample and modify the sample which reproduces the issue and also let me know the version number of Essential Studio currently you are using. Thanks for using Syncfusion Products. Regards, Vijay

Vijayanand S [Syncfusion]
Replied On February 6, 2006 05:55 AM

Hi Bryant, Sorry I forgot to attach a Test sample. Please refer the sample here: Test Sample Thanks, Vijay

Bryant Cobarrubias
Replied On February 7, 2006 09:34 AM

Hello Vijay, I am unable to download the zip file (there may be a firewall issue at my location). Can you please post the applicable code snippet? Thanks, Bryant

Vijayanand S [Syncfusion]
Replied On February 7, 2006 10:38 AM

Hi Bryant, Here is the code snippet for the sample: private void button1_Click(object sender, System.EventArgs e) { this.dockingManager1.DockControl(this.panel1,this,Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom,190); this.dockingManager1.DockControl(this.panel2,this.panel1,Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed,200); this.dockingManager1.SetAutoHideMode(this.panel2,true); } private void button2_Click(object sender, System.EventArgs e) { this.dockingManager1.ActivateControl(this.panel1); } Before you going to test, please create a empty project and add two buttons,two panels and Dockingmanager into the form and add these above code to test. Please let me know if you have any questions. Thanks, Vijay

R Parmar
Replied On February 13, 2006 05:24 PM

Thx I tested and it works as clicled.. BUT if the same FORM code is converted as a UserControl and calling this Usercontrol from Form, It docks vertically and not horizontal, also Button does not show up.. Why? RP >Hi Bryant, > >Here is the code snippet for the sample: > > >private void button1_Click(object sender, System.EventArgs e) > { > this.dockingManager1.DockControl(this.panel1,this,Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom,190); > this.dockingManager1.DockControl(this.panel2,this.panel1,Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed,200); > this.dockingManager1.SetAutoHideMode(this.panel2,true); > > } > > private void button2_Click(object sender, System.EventArgs e) > { > this.dockingManager1.ActivateControl(this.panel1); > } > > >Before you going to test, please create a empty project and add two buttons,two panels and Dockingmanager into the form and add these above code to test. > >Please let me know if you have any questions. > >Thanks, >Vijay

Vijayanand S [Syncfusion]
Replied On February 15, 2006 09:18 AM

Hi, I am afraid, I have used the same Form code in the usercontrol also. But it does not behave as you mentioned behavior. Could you please let me know the version number of Essential studio? I have tested this issue with our latest build and I was not able to see any difference. If possible, could you please send me the sample which reproduces the problem? If it''s possible to reproduce the problem at home, it will help us to resolve this issue accurately. Please let me know if you have any qeustions. Thanks, Vijay

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;