Hi,
How can i add/rmove a control to a form dynamcally?
Can add Form too?
Can i copy a form with all the controls to another form dynmancally?
Thanks
Printable View
Hi,
How can i add/rmove a control to a form dynamcally?
Can add Form too?
Can i copy a form with all the controls to another form dynmancally?
Thanks
1 question at a time:
1. How can i add/rmove a control to a form dynamcally?
2. Can add Form too?Code:'If you already have a text box on your form, set its index
'property to 0
Dim maxID As Integer
maxID = Command1.Count
Load Command1(maxID)
Command1(maxID).Visible = True
Command1(maxID).Top = Command1(maxID - 1).Top + command1(maxID - 1).Height 100
3. Can i copy a form with all the controls to another form dynmancally?Code:Dim frmNew As New Form1
Load frmNew
frmNew.Show
They already will be on your new form, as frmNew is just a new copy of Form1 ok :)
good luck
i hope i helped you ;)
Hi,
da_silvy - David - Thnkx
so it worked