Creating VB Forms on FLY
-
I couldnt find the VB6 Message board hope u wudnt mind asking question here. I want to create vb6 forms dynamically . i have form names in database and i want to create form of that specific name on fly**
R A M
**
-
I couldnt find the VB6 Message board hope u wudnt mind asking question here. I want to create vb6 forms dynamically . i have form names in database and i want to create form of that specific name on fly**
R A M
**
I don't think it's possible in VB6 because it doesn't support reflection. In VB.NET, this is not a problem. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
I couldnt find the VB6 Message board hope u wudnt mind asking question here. I want to create vb6 forms dynamically . i have form names in database and i want to create form of that specific name on fly**
R A M
**
I think an array of type Forms could be helpful (if I have got you correctly):
dim forms() as Form
....
redim preserve form ( ubound(forms) + 1 )
set forms ( ubound ( forms) ) = new form
...hope it helps
-
I think an array of type Forms could be helpful (if I have got you correctly):
dim forms() as Form
....
redim preserve form ( ubound(forms) + 1 )
set forms ( ubound ( forms) ) = new form
...hope it helps
I have got the solution ... Forms Collection is used for Loaded forms in memory so Forms.Add(rs("FormName")) for each frm in forms if frm.name="Form2" then frm.show end if**
R A M
**