Link to home
Start Free TrialLog in
Avatar of b001
b001Flag for Afghanistan

asked on

Menu and Forms

Hi Experts
I have a form menu on clicking Bill'sSpecial
I would like to run LoginForm1 and return Passx variable
Check Passx variable if YES then run Bill_sp Form
With the follwong code
It runs LoginForm1 but it does not wait for any input there it continues
How can I stop it at LoginForm1 then execute next line

   Private Sub BillsSpecialToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BillsSpecialToolStripMenuItem.Click
        passx = ""
        LoginForm1.Show()
        If passx = "YES" Then
            Bill_sp.Show()
        End If
        MsgBox(passx)
    End Sub

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial