Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Checked and Checkedchanged.

In VB Radio button and Checkboxes have a property named checked and an event name checkedchanged.


I would like to know if both are used to test if a checkbox is selected or a radio button is selected.

is there any explanation when we should use checked versus checkedchanged?

thanks

SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

if I understand
when you check or uncheck the radio button or checkbox, there is an event fired (checkedchanged). we can trigger this event through handles from another procedure. so we don't use checkedchanged to test if the radio button or checkbox has been checked.
Correct?

it seems like the 2 following procedures will do the same thing:

sub proc1 checkbox1_checkedchange(arguments here) handles ......
' calculate future value
end sub

sub proc2(arguments here)
if checkbox1.checked then
'calculate future value
endif
end sub

 
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial