Prevent executing code in a certain event

How do I trigger an event without it actually triggering the code within the event, if this is even possible. For example, I could use the SetFocus function but not actually execute any of the code in the GotFocus event for that control. I know I could use an if statement but is there a way of disabling event so the computer does not even have to process the if statement in the event.

THANKS

No
Not built in

Set a boolean in the SetFocus and test it in the GotFocus or something along those lines

[quote=48508:@Norman Palardy]No
Not built in

Set a boolean in the SetFocus and test it in the GotFocus or something along those lines[/quote]
hanks. I was just checking.