Click to See Complete Forum and Search --> : Checkboxes and Label captions
Aiianah
May 24th, 2001, 08:57 AM
Please help...How do you make a checkbox control associate itself with a label control...for example, using a checkbox control I want to be able to hold the current label caption and as long as it's checked it won't change...it's like a combination of a slot machine (to randomize) and a poker game (to hold a number displayed)...Can anyone show me how to code it...I've been working on it for days now...Please help - thank you very much.
ecannizzo
May 24th, 2001, 09:03 AM
You can use the click event of the checkbox.
if chkbox.value = checked then
label.caption = "Some caption"
else
label.caption = "Some other caption"
end if
Hope this helps!
coolbiz
May 24th, 2001, 12:42 PM
Just to add... if I'm not mistaken, that should be vbChecked instead of just checked :)
-Cool Bizs
Cakkie
May 24th, 2001, 01:02 PM
Just to add... both checked and vbChecked can be used. Same goes for unchecked and vbUnchecked.
Tom Cannaerts
slisse@planetinternet.be
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.