jskfan
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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(ar
' calculate future value
end sub
sub proc2(arguments here)
if checkbox1.checked then
'calculate future value
endif
end sub