Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

Just wondering if anyone can help.

I am writng in VB

I have 1 form (Form1.vb) which contains a split container (SplitContainer1) in SplitContainer1.panel2 I have a treeView with some detail in. I also have a 1 user control form and I need to display that in SplitContainer1.panel2 when I selct from the treeview.

Just cant seem to find the code to display the control form.


Please help
Posted

1 solution

VB
Dim frm as new myform
Frm.parent = splitcontainer1.panel2
Frm.show


As the basic example above shows you need to set the forms parent to the panel2 in the splittercontainet control
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900