Cancelling the checked changed event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to extend a CheckBox to include a cancelable CheckedChanging event. Anyone know how to go about this? Looking at code for, say, implementing a TabControl.SelectionIndexChanging event makes me think that I have to intercept a Windows message, but that's about as far as I can get. Any help?

Thanks,
 
Hi Pat

I do it by setting AutoCheck = False, and then handle the click event. If
you want the box to be checked you check it explicitly in code, otherwise
leave it and it will remain unchecked.

HTH

Charles


pmcguire said:
I'd like to extend a CheckBox to include a cancelable CheckedChanging
event. Anyone know how to go about this? Looking at code for, say,
implementing a TabControl.SelectionIndexChanging event makes me think that I
have to intercept a Windows message, but that's about as far as I can get.
Any help?
 
Back
Top