Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted

for me, there is no form2.show.. its odd..

check this code out

under form1's 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 ?!?

My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!)

vbprogramming.8k.com

My Project (Need VB.NET Programmers)

http://workspaces.gotdotnet.com/ResolutionRPG

Posted

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()

Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...