Hi !
I have a problem if i want to show an other form.
A long time ago it worked imho like this:
formname.show
but in VB .NET beta 2 it does not work :-(
can anyone give me a hint how to show a form ?
thx
Jens
Printable View
Hi !
I have a problem if i want to show an other form.
A long time ago it worked imho like this:
formname.show
but in VB .NET beta 2 it does not work :-(
can anyone give me a hint how to show a form ?
thx
Jens
You must create an instance of the form you want to access.
For examply say you have two forms in your project. Form1 and Form2.
Dim Frm2 as Form2
'Now you use Frm2 to change the properties.
Frm2.Visible = True
Me.Visible = False
I goofed.
Dim Frm2 as New Form2
or in a module
Public Frm2 as New Form2
That is what I have figured out so far. :)
:confused: I had the same question. The posted solution worked, but how do I get back to the main form? I hid the main form with the me.visible = FALSE (me being Form1) before I made the new form visible, but how do I change it back? I tried Form1.visible = TRUE, but it didn't work.