• Log in or sign up for an account here: https://www.sythe.org/login

New to VB6

Do Not Trade
Joined
Feb 11, 2007
Sythe Gold
0
Messages
1,478
New to VB6
Ok, well i found this section a few days ago and i was like "hey! Imma learn VB6." well ive got the 21 day guide and VB6 Portable (So i can use at school) and ive made my first Application. Ok i have a button and img and ect. but how do i make the button when i double click it exit the app? and would anyone be willing to be a VB6 Mentor of sorts for me till i can learn?
 
New to VB6
To end an application, you can either use the VERY bad method of
Code:
End
or learn a bit more and use
Code:
Dim frm As Form
    For Each frm In Forms
        Unload frm
    Next frm

As for double clicking a command button, it can't be done automatically since there is no "Double Click" subroutine inside VB6, but there is a "Click" routine, which is the default one for a command button. Use that one.
 
Runescape Gamblingrunescape gambling
Back
Top