Wish checkbox

granthierry

Member
Licensed User
Longtime User
Hi everybody,

first thing sorry for my english.

I wish for the checkbox a function for setting check/unckeck programmaticaly,
Without the code passed in checkbox_checked

Thanks
 

eps

Expert
Licensed User
Longtime User
I'm sorry I don't really follow, are you able to give a bit more of an example or outline your idea or problem a bit more?

Surely

Checkbox.Checked(True) is simple enough?
 

granmaestro

Member
Licensed User
Longtime User
it's difficult to explain in english :

when you set the checkbox : checkbox1.checked=true
the application go to checkbox1_ckecked and you have some code. Ok ?

what i "want" is => you write checkbox1.state=true just to have the good appearance,

you understand what i mean ?
 

Informatix

Expert
Licensed User
Longtime User
it's difficult to explain in english :

when you set the checkbox : checkbox1.checked=true
the application go to checkbox1_ckecked and you have some code. Ok ?

what i "want" is => you write checkbox1.state=true just to have the good appearance,

you understand what i mean ?
Then set a boolean to avoid running your code. E.g. ChangedByUser is set to false when you want to change only the visual state of the checkbox (and reset to True just after). And your event sub begins by If ChangedByUser then ...
 
Top