Results 1 to 6 of 6
  1. #1
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty

    how to make a select all button for checkboxes

    Well i have 6 checkboxes.
    I want to make a button/another checkbox thats says select all and it selects them all.
    Wats the code?

    Thanks,
    acid_buRn

  2. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    timebomb99 (12-22-2009)

  3. #2
    Iamazn1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    407
    Reputation
    12
    Thanks
    50
    Code:
    If CheckBox7.Checked = True Then
    CheckBox1.Checked = True 
    CheckBox2.Checked = True 
    CheckBox3.Checked = True 
    CheckBox4.Checked = True 
    CheckBox5.Checked = True 
    CheckBox6.Checked = True
    Else
     CheckBox1.Checked = False
    CheckBox2.Checked = False
    CheckBox3.Checked = False
    CheckBox4.Checked = False
    CheckBox5.Checked = False
    CheckBox6.Checked = False
    CheckBox7 is the Checkbox you use to check all the other boxes

  4. #3
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    lol iknow that.
    Thought there would have been an easier code.
    CBF typing all that up lol

    thanks anyway

  5. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    timebomb99 (12-22-2009)

  6. #4
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    then do:
    Code:
    If CheckBox7.Checked = True Then
    Check(True)
    elseif checkbox7.checked = false then
    check(false)
    end if
    
    sub check(tof as string)
    checkbox1.checked = tof
    checkbox2.checked = tof
    checkBox3.checked = tof
    checkBox4.checked = tof
    checkBox5.checked = tof
    checkBox6.checked = tof
    
    end sub
    or, even more complicated:

    Code:
    If CheckBox7.Checked = True Then
    Check(True)
    elseif checkbox7.checked = false then
    check(false)
    end if
    
    sub check(tof as string)
    dim num as integer = 1
    while num <> 7
         checkbox + num.checked = tof
         num += 1
    End While
    End Sub
    or something similar

    Side note: MISA CAMPO IS SEXY. idk why that huge ass nose is soo attractive.
    Last edited by gwentravolta; 10-23-2009 at 08:12 PM.


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  7. #5
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by gwentravolta View Post
    then do:
    Code:
    If CheckBox7.Checked = True Then
    Check(True)
    elseif checkbox7.checked = false then
    check(false)
    end if
    
    sub check(tof as string)
    checkbox1.checked = tof
    checkbox2.checked = tof
    checkBox3.checked = tof
    checkBox4.checked = tof
    checkBox5.checked = tof
    checkBox6.checked = tof
    
    end sub
    or, even more complicated:

    Code:
    If CheckBox7.Checked = True Then
    Check(True)
    elseif checkbox7.checked = false then
    check(false)
    end if
    
    sub check(tof as string)
    dim num as integer = 1
    while num <> 7
         checkbox + num.checked = tof
         num += 1
    End While
    End Sub
    or something similar

    Side note: MISA CAMPO IS SEXY. idk why that huge ass nose is soo attractive.
    too complicated for me lolz.
    Ill stick with the easier/longer code

  8. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    timebomb99 (12-22-2009)

  9. #6
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Code:
    If CheckBox7.Checked = True Then ' Check All Box
    CheckBox1.Checked = True 
    CheckBox2.Checked = True 
    CheckBox3.Checked = True 
    CheckBox4.Checked = True 
    CheckBox5.Checked = True 
    CheckBox6.Checked = True
    CheckBox7.Enabled = False
    CheckBox8.Enabled = True
    Else
    CheckBox8.Checked = True Then ' Uncheck all box
    CheckBox1.Checked = False
    CheckBox2.Checked = False
    CheckBox3.Checked = False
    CheckBox4.Checked = False
    CheckBox5.Checked = False
    CheckBox6.Checked = False
    CheckBox7.Enabled = True
    CheckBox8.Enabled = False
    that is the code for a check all/uncheck all option

Similar Threads

  1. [Release] How To Make Your Own Simple Skin For CS 1.6
    By XownageX in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 21
    Last Post: 07-10-2018, 04:25 PM
  2. How to make 12k ZP [ NOT WORKING FOR SOME ]
    By darklynk in forum CrossFire Tutorials
    Replies: 58
    Last Post: 09-13-2010, 06:17 AM
  3. how to make bloods hack work 32bit. for any user
    By jvve in forum CrossFire Discussions
    Replies: 5
    Last Post: 07-13-2010, 07:12 AM
  4. I want to learn how to make a Easy ESP hack for mw 2
    By lookeper in forum Programming Tutorial Requests
    Replies: 5
    Last Post: 03-22-2010, 08:02 AM
  5. [TuT] How to make PW and value box for Guns/Superjump/SkyStormer(VB6)
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-30-2007, 01:09 PM

Tags for this Thread