|
-
Oct 20th, 2001, 01:49 PM
#1
showind windows.forms (form.show = true)
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
-
Oct 21st, 2001, 03:11 PM
#2
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
-
Oct 21st, 2001, 05:06 PM
#3
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.
-
Jan 30th, 2002, 11:11 AM
#4
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|