Any way to launch a subform in VB. I am looking for a simple way to held several subforms in a VB form according to user's choice. Any control to held these subforms?
Thx
Printable View
Any way to launch a subform in VB. I am looking for a simple way to held several subforms in a VB form according to user's choice. Any control to held these subforms?
Thx
SubForms?? Do you mean Child Forms? If so, use the SetParent API, or simply use an MDIForm instead.
Suppose I have a treeview box on a form. I would like to load different forms beside the treeview control based on the node position in the tree. I am looking for a container for these "subforms". Any suggestion?
Use a PictureBox.
Code:Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub Form_Load()
Form2.Show
SetParent Form2.hWnd, Picture1.hWnd
End Sub
Thx