Visual Basic checkbox help

nightscream

New Member
Messages
948
Reaction score
0
Points
0
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
 

randomize

New Member
Messages
674
Reaction score
0
Points
0
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
 

Dub_Dude

Member
Messages
344
Reaction score
0
Points
16
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
 
Top