L
Lee Gillie
Can one invoke an event of a control?
For example, I am MANUALLY switching tabs on a TabControl. The way I am
doing it suppresses the Enter, GotFocus, Leave, Validating, Validated,
LostFocus sequence of events. I wish to preserve at least the Validating
event. To do so, I need to be able to invoke this event for a TabPage as
I prepare to go to the next tab (or close the form).
Something like:
RaiseEvent MyTabPage.Validating( sender, cancelargs )
would be really nice, but OF COURSE it doesn't work.
- Lee
For example, I am MANUALLY switching tabs on a TabControl. The way I am
doing it suppresses the Enter, GotFocus, Leave, Validating, Validated,
LostFocus sequence of events. I wish to preserve at least the Validating
event. To do so, I need to be able to invoke this event for a TabPage as
I prepare to go to the next tab (or close the form).
Something like:
RaiseEvent MyTabPage.Validating( sender, cancelargs )
would be really nice, but OF COURSE it doesn't work.
- Lee