+ Reply to Thread
Results 1 to 7 of 7

Thread: Visual Basic checkbox help

  1. #1
    nightscream is offline x10 Lieutenant nightscream is an unknown quantity at this point
    Join Date
    Feb 2006
    Location
    Hallaar, Belgium
    Posts
    474

    Visual Basic checkbox help

    i need some help with visual basic, i'm still learning
    but it's with 2 checkbox
    if one is selected it will do that function
    if the other is selected it will do another function
    but if none selected it will do nothing, but i need to know
    how i can let my program see when it's checked
    i hope you understand
    ------------------------------------------------------------------------------------------
    If you have any troubles with a website or a script, just send me a pm.

    I also code websites in xHTML/css, can code javascript and php too if needed

  2. #2
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: Visual Basic checkbox help

    I think I know what you mean

    If there was a text box with text in it, and you checked one of the boxes it would apply that style to the box?

    Something along those lines, I think!?!?

    If you want, you can PM me and I shall write you a test program, with comments as such, so it would help you?

    Hope this helps


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  3. #3
    Dub_Dude is offline x10 Sophmore Dub_Dude is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    172

    Re: Visual Basic checkbox help

    should be something like:

    If checkbox1.value = <number goes here*> then
    <code goes here>
    else
    <code goes here>
    end if

    *0 = unchecked
    *1 = checked
    *2 = greyed

    so basically if you use the number 1, the code will check to see if the checkbox is checked and if it is it will perform the piece of code beneath it, if the value is anything other than 1 it will perform the code underneath the "else"

    if that makes sense :P

  4. #4
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Talking Re: Visual Basic checkbox help

    I have the code for you, download from this site:

    http://http://www.randomize.x10hosting.com/vb code.zip
    Last edited by randomize; 03-29-2006 at 01:34 PM.


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  5. #5
    Dub_Dude is offline x10 Sophmore Dub_Dude is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    172

    Re: Visual Basic checkbox help

    lol, pretty much what i did, i just forgot to dim and set a variable :-P

  6. #6
    nightscream is offline x10 Lieutenant nightscream is an unknown quantity at this point
    Join Date
    Feb 2006
    Location
    Hallaar, Belgium
    Posts
    474

    Re: Visual Basic checkbox help

    oh ok thx guys, i'll try it later
    ------------------------------------------------------------------------------------------
    If you have any troubles with a website or a script, just send me a pm.

    I also code websites in xHTML/css, can code javascript and php too if needed

  7. #7
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: Visual Basic checkbox help

    Glad To Help My Friend


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

+ Reply to Thread

Similar Threads

  1. Using Visual Basic 2005
    By TheJeffsta in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 08-05-2006, 02:18 PM
  2. Visual Basic for Free?
    By AsPeRiTy in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 08-15-2005, 08:24 PM
  3. Visual Basic 6.0
    By spyrorocks in forum Scripts & 3rd Party Apps
    Replies: 27
    Last Post: 06-25-2005, 03:56 AM
  4. Visual Basic: An introduction Part 1
    By thegoodlist in forum Tutorials
    Replies: 0
    Last Post: 06-08-2005, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers