3
Answers

How to test if form is on top or the active window.

Hayden Fisher

Hayden Fisher

14y
9.8k
1
Hi all,

I have created a form with a custom border, on selecting another program it calls a deactivate event that preforms the shading to make it look unselected, and the opposite when it is selected.

If however I run the program and while it is loading I chose another program so that it sits on top, my form has not actually loaded in this time and doesn't fire off a deactivate event making it look like an active window.

Basically I'm having trouble finding a way to test if my program is the active one and if so force the deactivate event.

Any help would be greatly appreciated,
Hayden
Answers (3)