Open a form within a form from Tree View

jasonesser
02-07-2002, 09:16 PM
I am attempting to open a dataform within my main form from a treeview listing of forms within the program. I am not sure exactly where to take this question, but hopefully someone has a few words of advice.

Flyguy
02-08-2002, 05:18 AM
I don't know how you stored your forms and data in the TreeView but the most simple way would be using a Select statement in the TreeView_NodeClick

Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
Select Case Node.Key
Case "Key1"
Form1.Show
Case "Key2"
Form2.Show
Case ...
' etc
End Select
End Sub

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum