>Hi,
>
>Anyone have a good idea for preventing a page Activate event from happening EXCEPT when actually activated by the user by clicking or tabbing to the page? What I need is an UIEnable event for a page - not sure why it's not there for pages - seems like a critical ommision to me.
>
>Problem is that the activate fires whenever a dialog (or other windows program) is brought up and then user returns to my form, and I don't want it to. I've considered some sort of flag property on the form or an invisible object placed on the page in which I just use its UIENable. Anyone have a better idea?
>
>Ken
Ken, you can't prevent Activate event from happening (that's what events are for :)
I have one form where I run the code in Activate conditionally, based on the form flag property and invisible control takes care of it.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison