Changes in code? frmMain.Show vbModel

  • Thread starter Thread starter TazMaster67
  • Start date Start date
T

TazMaster67

Guest
Within VB6 I was able to create a login window and wait for the user input with the following code:

frmMain.Show vbModel

This would then return from that login window with a valid or invalid user information.

Now the code I am using in .NET is as follows:

Dim wMain As New frmMain()
wMain.Show()


What happened to the vbModel option or what would I use to get the same results.
 
Use the form's ShowDialog method to show the form modally.

If you have buttons on the modal form such as OK or Cancel, you
can set their DialogResult property, so that when you click them,
the form will close and the result will be returned from the
ShowDialog call.

That is one of my favorite cool new features in VB.NET.
 
Back
Top