|
-
Feb 27th, 2001, 02:04 PM
#1
Thread Starter
New Member
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
-
Feb 27th, 2001, 03:43 PM
#2
SubForms?? Do you mean Child Forms? If so, use the SetParent API, or simply use an MDIForm instead.
-
Feb 27th, 2001, 04:49 PM
#3
Thread Starter
New Member
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?
-
Feb 27th, 2001, 04:54 PM
#4
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
-
Feb 27th, 2001, 04:56 PM
#5
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|