Windows Forms
-
Dim newForm As New Form2
newForm.Show()
' or
Dim dr As DialogResult
dr = newForm.ShowDialog()
' Do something with the DialogResult...RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Dim newForm As New Form2
newForm.Show()
' or
Dim dr As DialogResult
dr = newForm.ShowDialog()
' Do something with the DialogResult...RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Thats for version 1 and 1.1 but in 2 i have noticed that u can do it the old fationed way like in vb6 where u dont have to do the whole Dim newForm As New Form2. u can just newForm.Show().
ACtually, the libraries in VB.NET2005 are doing that very thing for you. Just because you CAN do it in VB.NET, doesn't mean you SHOULD be doing it. Any VB6 project run through the Upgrade Wizard in VS.NET 2002, 2003, or 2005, will do the same thing. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome