i know this is trivial but i cant for the life of me ****ing find how to do this
simple really
how to load a separate form,
you got ur index form, then u want to call another form to be visible,
and its vb.NET
Printable View
i know this is trivial but i cant for the life of me ****ing find how to do this
simple really
how to load a separate form,
you got ur index form, then u want to call another form to be visible,
and its vb.NET
I'm guessing you are using the old VB syntax of
form1.show
or something similar.
Under .net you need to do something like:
Code:Dim f As New frmMain()
System.Windows.Forms.Application.Run(f)
yer i figured out a dif way,
i created my form frmLogon,
then under a buttons clik proceedure i declared a var as that form creating an instance of it then showing it
Dim frmLogon as frmLogon ' second frmLogon is the actual form
frmLogon.ShowDialog()
that does it
Yes, that also gets it.
Of course you are launching a modal form, but that's cool if that's what you want.
:cool:
Then modal should be okay for that.