New to VB6

Discussion in 'Programming General' started by Y0u_G0t_Pwn3d, Apr 22, 2008.

New to VB6
  1. Unread #1 - Apr 22, 2008 at 9:48 PM
  2. Y0u_G0t_Pwn3d
    Joined:
    Feb 11, 2007
    Posts:
    1,478
    Referrals:
    0
    Sythe Gold:
    0

    Y0u_G0t_Pwn3d Guru

    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?
     
  3. Unread #2 - Apr 23, 2008 at 12:20 AM
  4. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    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.
     
< hard question... help is appreciated | Operator '&' is not defined...? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site