Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Nanven

VB.NET: How do you load other forms?

This topic is 5528 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Aside from your default form, how do you get another form to show? It used to be Form.Show() But that don''t work anymore, hehe.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Ya, it changed in VB.NET, though I can''t remember what it is.

Share this post


Link to post
Share on other sites
Forms are just classes that use GDI+ to display something to the user.


Dim myForm As New Form2() ''Form2 is the name of the form class you want to show
myForm.Show()


Epolevne

Share this post


Link to post
Share on other sites
Ahh got ya thanks, and to think it was that simple, didnt have to instance the form before.

Share this post


Link to post
Share on other sites
quote:
Original post by Epolevne
Forms are just classes that use GDI+ to display something to the user.

Most Windows Forms controls(including forms) are merely wrappers for their Win32 counterparts - I doubt many of them use GDI+ unless its for something special.



"To assert that the earth revolves around the sun is as erroneous as to claim that Jesus was not born of a virgin."
-- Cardinal Bellarmine

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!