OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 02, 2024 3:24 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Visual Basic Question
PostPosted: Wed Feb 25, 2004 11:34 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 9:01 am
Posts: 842
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:
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


Top
 Profile  
 
 Post subject: Re:Visual Basic Question
PostPosted: Wed Feb 25, 2004 4:09 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 9:01 am
Posts: 842
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


Top
 Profile  
 
 Post subject: Re:Visual Basic Question
PostPosted: Wed Feb 25, 2004 11:26 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group