opening forms !? This is WEIRD

ThePentiumGuy

Well-known member
Joined
May 21, 2003
Messages
1,113
Location
Boston, Massachusetts
in vb.NET, im trying to close form1 and open form2

under button1.click
Me.Close

but there is no:
form2.open
or
form2.show

its odd..
i tried
form2.activeform.show
but it gives an error !?
this is weird
 
for me, there is no form2.show.. its odd..
check this code out
under form1s button1.click
_____________________
form1.activeform.hide
form2.activeform.show
____________________
This doesnt show form2....
i dunno what they did in .NET but its odd...
now i have to do this project in vb6 ?!?
 
But anyway... now in VB.NET everything is treated as an object, so you need to create an instance of the object first

Dim xx as Form1 = New Form1 or Dim xx as New Form1

Then you can call it

xx.Show()
 
Back
Top