Since you are talking about forms, I assume this is WinForms?
If so then just use
if (myLoginForm.ShowDialog() == DialogResult.OK)
{
...
}
The ShowDialog method halts processing until the user has responded or closed the form.
"the forms you create in VB are WinForms? Well
am using this code:
Dim frm As New frmLogin
frm.MdiParent = Me
frm.ShowDialog()
When i add frm.ShowDialog(DialogResult.OK) it says it cant be converted to win32 forms"
Sorry - C# rather than VB:
Dim frm As New frmLogin
If frm.ShowDialog() = DialogResult.OK Then
...
End If