Alright, I have a button press, and I was was wondering that is there a way to make a new mdi child form like another form when clicked, like when the button is clicked, it automatically makes a duplicate of form1...
Printable View
Alright, I have a button press, and I was was wondering that is there a way to make a new mdi child form like another form when clicked, like when the button is clicked, it automatically makes a duplicate of form1...
Not exactly a duplicate as it appears on the screen when button is pressed but rather as it was designed:
Code:Private Sub Command1_Click()
Dim frm As Form1
Static counter As Integer
Set frm = New Form1
counter = counter + 1
frm.Caption = "New Document " & counter
frm.Show
End Sub
what do you mean "designed"
It will appear as you would open it for the first time - a brand new and "fresh".
Unless you pass some values to some of its controls/properties/etc...
There are lots of different techincs to manage new forms.
Ok, thank you...