Stuck can some one please help me

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

Stuck can some one please help me
  1. Unread #1 - Nov 30, 2008 at 6:23 AM
  2. dosanjh5
    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0

    dosanjh5 Member
    Banned

    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
     
  3. Unread #2 - Nov 30, 2008 at 7:15 AM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    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

    SuF Legend
    Pirate Retired Global Moderator

    Stuck can some one please help me

    What are you trying to enable or disable?
     
  5. Unread #3 - Nov 30, 2008 at 7:26 AM
  6. dosanjh5
    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0

    dosanjh5 Member
    Banned

    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
     
  7. Unread #4 - Nov 30, 2008 at 7:36 PM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  9. Unread #5 - Dec 1, 2008 at 7:51 PM
  10. dosanjh5
    Joined:
    Aug 26, 2008
    Posts:
    50
    Referrals:
    0
    Sythe Gold:
    0

    dosanjh5 Member
    Banned

    Stuck can some one please help me

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site