Bypassing Events

  • Thread starter Thread starter Rex the Strange
  • Start date Start date
R

Rex the Strange

Hello All,

I don't know if this is possible, but I'll give it a shot, here. I'm
sick of writing the following line of code in control event handlers:


if not visible then exit sub


Is it possible to override whichever routine processes the event
handler list so that no events are fired if the control is not
visible?
Something like this, for example:


protected overrides sub handle_events
if visible then mybase.handle_events
end sub 'handleEvents


Of course, I know that there's no handle_events routine, but is there
an equivalent?

Please advise and tia,

rts
 
if you subclassed the control, then you could add this logic to the control,
not everywhere the control is used.

-- bruce (sqlwork.com)
 
if you subclassed the control, then you could add this logic to the control,
not everywhere the control is used.

-- bruce (sqlwork.com)


Could you clarify, please? Where would I add the logic (ie: under
which parent handler)?
 
Back
Top