open form and wait for result

  • Thread starter Thread starter Gene Vangampelaere
  • Start date Start date
G

Gene Vangampelaere

In my code I want to open a form to let the user enter his
username/password. When he click on the OK button there will be some
authentication and the I want to return TRUE or FALSE back to the form that
initiated the login form.

How can I do that?

Try
Dim frm As New Loginscreen
frm.Show() '<<--- wait here until the user click OK in the form
???
Return frm.UserSid
Catch ex As Exception
Return AUTHENTICATION_FAILED
End Try
 
Back
Top