Docking Manager with mdi parent

Hi,

I created a panel and I can already put it in the form. 
But I wanted to put inside that panel a treview. How can I associate this panel with another form without caption in order to show the contents of that form.

an example in vb.net would be very useful

thanks

5 Replies

KR Kannan R Syncfusion Team October 4, 2018 02:59 PM UTC

Hi Ricardo, 
 
Thank you for contacting Syncfusion Support.  
 
We are unable to understand your query clearly. Could you please confirm if this reported requirement is know “how to load Panel as Dock child” and how to load MDIChild Form in DockingManager”? 
 
If so, kindly make use of the following documentation.  
 
 
 
Otherwise kindly explain us your requirement in details. We will analyze and provide you the prompt solution.  
 
Regards, 
Kannan 



RA Ricardo Abranches October 8, 2018 10:06 AM UTC

My apologies for the doubts created by the description of my problem.
What I want to do is:

1) I have an MDI FORM -  OK
2) I successfully added a panel - OK
3) I have a another form (which has a treeview) and wanted to put it inside the panel


KR Kannan R Syncfusion Team October 9, 2018 09:54 AM UTC

Hi Ricardo,  
 
Thank you for providing requested details.  
 
Based on your confirmation, we hope your only requirement is to know “how to load another form in Panel”. If so, please make use of below code snippets for your reference. 
 
Code Snippet : [VB] 
 
 
                        ''' <summary> 
                        ''' To load Form2 inside Panel 
                        ''' </summary> 
                        Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load 
                                    Dim form2 As New Form2() 
                                    form2.TopLevel = False 
                                    panel1.Controls.Add(form2) 
                                    form2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None 
                                    form2.Dock = DockStyle.Fill 
                                    form2.Show() 
                        End Sub 
 
 
Screenshot 
 
As like your request, we have added TreeView in Form2.  
 
 
 
Load Form2 to inside the Panel.  
 
 
 
We have also prepared sample for your reference. 
 
 
Please let us know if it helps.  
 
Regards, 
Kannan 



RA Ricardo Abranches October 10, 2018 12:07 PM UTC

Thank's, that's it. :-)

The only things i can say is that you should include this example on the online help.

Thank's very much




KR Kannan R Syncfusion Team October 10, 2018 12:23 PM UTC

Hi Ricardo,   
  
Thank you for your feedback.  
 
We will consider your request and it will be done at the earliest.  
 
Regards, 
Kannan 


Loader.
Up arrow icon