Visual Basic Question

Programming, for all ages and all languages.
Post Reply
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Visual Basic Question

Post by Neo »

I have a VB question. Ive used a login form as the startup form in my app after checking i 'show' the next form and 'hide' the login form. using

Code: Select all

If loginCorrect Then
        qFrm.Show
        Me.Hide
End If
This works fine but then when i close this 'qFrm' the application closes but the buttons on the VB-IDE show that the app hasnt terminated i.e the 'Run' button is still de-activated. I have to manually push the stop button to continue editing. What could be the problem? How can i close the app fully
Only Human
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Visual Basic Question

Post by Neo »

I know that VB isnt exactly the best of languages but i really needed this app in a jiffy.It works fine except for the problem ive specified above. I hope someone here uses VB or at least knows the way to use diiferent forms in an app with VB.
Only Human
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Visual Basic Question

Post by Candy »

Neo wrote: I know that VB isnt exactly the best of languages but i really needed this app in a jiffy.It works fine except for the problem ive specified above. I hope someone here uses VB or at least knows the way to use diiferent forms in an app with VB.
hiding a form is not closing a form. If you open multiple forms, you must also Close() them. Try Close()ing the other form in the Form.Close() of the second one.
Post Reply