Adblock breaks this site

Stuck can some one please help me

Discussion in 'Programming General' started by dosanjh5, Nov 30, 2008.

  1. dosanjh5

    dosanjh5 Member
    Banned

    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0
    Stuck can some one please help me

    okay soo i got these option things on my program like enable and disable but how do i make them actually enable and disable all help is greatly needed
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    Joined:
    Jan 21, 2007
    Posts:
    14,211
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary
    Stuck can some one please help me

    What are you trying to enable or disable?
     
  3. dosanjh5

    dosanjh5 Member
    Banned

    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0
    Stuck can some one please help me

    for like a auto clicker soo like if its on diable when u click start it wont turn on and click enable then you can click start and it would start
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Stuck can some one please help me

    There are many possible ways you could do this. I've not used VB6 in a long time, but from what I can think of there could be two easy ways of doing this.

    The first involves the actions of the actual option-buttons. First, double click on the "Disable" option - you should get a sub which is executed when it is enabled or clicked. In this, you would place something similar to the following:

    Code:
    btnStart.Enabled = False
    btnStop.Enabled  = False
    Depending on what you called your controls.
    Now for the enable option, you would double click on that and place the opposite:

    Code:
    btnStart.Enabled = True
    btnStop.Enabled = True
    The second way involves checking the checked state of the options when you actually click the "start" button, but as I don't have VB6 installed it is quite hard for me to tell you what to do because I'm almost certain anything I write on the spot won't work.
     
  5. dosanjh5

    dosanjh5 Member
    Banned

    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0
    Stuck can some one please help me

    Thanks swan so much it worked :)
     
< Can you guys help me??? | sum numbers in a collection >


 
 
Adblock breaks this site