Form Displaying on it's own.

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Why when I run this code does the Login Form display when the dim M as new
Login runs? I am calling it from the Form_Load of my main form. I thought
it should wait until I called M.ShowDialog, but it doesn't. How can I make
it behave that way? Any insight would be nice.

Thanks
Chris

DB = New OracleWrapper.DBManager
Dim M As New Login(DB)
If M.ShowDialog() = DialogResult.Cancel Then
Me.Close()
End If
 
IT is hard to knwo exactly whatis happening

The Login constructor must be displaying itself. Is there an other constructor you can call

Your right - it shouldnt be

Regard
MGW
 
Back
Top