Check if Modal Form is Top (1 Viewer)

MLUCKHAM

Registered User.
Local time
Today, 13:04
Joined
Jul 23, 2013
Messages
89
Hi Guys

I have a form that is opened as a popup and modal. From this form the user can also open other forms, again which are popup and modal.

The first form as a timer event which fires after 5 minutes. It loaded a status screen on this form when the timer event fires.

I only want the timer event to complete its action if the first form is currently the top form.

There are lots of possible forms that the user could open from this top form so I would rather use some code to check the first form status than try and keep track of which forms have opened and closed.

Anyone any ideas? Win API call?

Matt
 

MLUCKHAM

Registered User.
Local time
Today, 13:04
Joined
Jul 23, 2013
Messages
89
Sorted it - just check Screen.ActiveForm.Name to see if it is the same as the first form. Sorry to bother you guys.
 

Users who are viewing this thread

Top Bottom