Activate event, testing when triggered ?

M

mscertified

Is there ant neat way to tell if a form's Activate event is firing after the
form is opened as opposed to after returning to the form from another form? I
don't want to use global variables. But I need to fire some code only when
returning from another from, not when following the open event.
 
L

Lynn Trapp

Put your code in the Close event or the Deactivate event of the form you are
returning from.
 
M

mscertified

The problem with that approach is that I'd have to put it in multiple places
and I'd rather put it in one place.
 
Top