Originally posted by Andrew_Blackwel
VB.Net is going well. At the moment Im trying to create the guess game in it. Al of the VB abd VBA stuff works in it except for loading a form already created.
I can load a new from if i do this
Dim easyfrm as New Form()
but I cant load a second form
I looking into MDI parents and children at the moment what do you think?
Got helps of resources and none of them tell you how to load a form
When you say load, you do mean say you're in Form 1, and you have a button, and when clicked you "Show" Form 2, correct? if so, you've got the basic idea where you said load a new form
the correct term for that is, creating a new instance of the actual class. or namely "instantiate"
so say you got Form2, that's the name of it
so you'll go
Dim mySecondForm as new Form2()
mySecondForm.show()
you can either do .show() or .showdialog()
show just shows the form, as oppose to showdialog, wat happens is, when the second form appears, the first form can't be clicked on, just like when you go into a program and go to like Tools> and Options (mainly in Office you'll see this), the Options form, will be shown as a dialog, and the actual entire word program cant be clicked on until the Options dialog is closed.