This is a migrated thread and some comments may be shown as answers.

Opening Child Form in Left or Right Panel

1 Answer 104 Views
Dock
This is a migrated thread and some comments may be shown as answers.
TwoLaJit
Top achievements
Rank 2
TwoLaJit asked on 17 May 2009, 03:07 AM
Is ther a way to do this with the DockPanel Control? 

Right now I have the on the mdi parent load:

Me.IsMdiContainer = True
dockingManager1.AutoDetectMdiChildForms = True

and a button to open the customer database as:

FormName.MdiParent = Me
FormName.Show()


it creates a documentpanel and fills it in that but i want to open it in a left or right panel. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 18 May 2009, 10:33 AM
Hi TwoLaJit,

You can achieve that using the code snippet below:

Dim dockPanel As New DockPanel() 
FormName.TopLevel = False 
FormName.FormBorderStyle = FormBorderStyle.None 
dockPanel.Controls.Add(FormName) 
dockingManager1.SetDock(dockPanel, Telerik.WinControls.Docking.DockPosition.Left) 

Do not hesitate to contact us back if you have further questions.

Regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
TwoLaJit
Top achievements
Rank 2
Answers by
Nick
Telerik team
Share this question
or