hey im trying to make a project and i need to know how to add a new form when some clicks new project on my menu , its going to be mbi and i want it to add to a list box and some one help me here . thanks
Printable View
hey im trying to make a project and i need to know how to add a new form when some clicks new project on my menu , its going to be mbi and i want it to add to a list box and some one help me here . thanks
Try this.
Code:Private Sub mnuNew_Click()
Dim newFrm As Form2
Static iCount As Integer
iCount = iCount + 1
Set newFrm = New Form2
Form2.Show
List1.AddItem ("Form #" & iCount & " created")
End Sub