VB.NET: How do you load other forms?

Started by
3 comments, last by Nanven 20 years, 11 months ago
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.
-Going to Westwood College for my Associates in Computer Programming
Advertisement
Ya, it changed in VB.NET, though I can''t remember what it is.
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 showmyForm.Show() 


Epolevne
Ahh got ya thanks, and to think it was that simple, didnt have to instance the form before.
-Going to Westwood College for my Associates in Computer Programming
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
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

This topic is closed to new replies.

Advertisement