Bypassing Events

  • Thread starter Rex the Strange
  • 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
 
B

bruce barker

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

-- bruce (sqlwork.com)
 
R

Rex the Strange

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)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top