#### Archived

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

# VB.NET: How do you load other forms?

## 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 on other sites
Ya, it changed in VB.NET, though I can''t remember what it is.

##### 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 showmyForm.Show()

Epolevne

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

##### 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

• ### Forum Statistics

• Total Topics
628333
• Total Posts
2982126

• 24
• 9
• 9
• 13
• 11