On Apr 29, 3:58 am, "Christian Reizlein" <creizl...@hotmail.com>
wrote:
How do i know if my application is the current active window?
i have tryied using me.focused but that only work if the form is focused, if
a child control is focused it then returns false and i want to know if my
application is the current active one in windows so i dont need to flash the
window to get user attention or bring it to front.
Thanks,
Christian,
You can take a look at Form's ActiveForm and ActiveMDIchild
properties. For instance, if you want to determine that your current
active form is Form1 by name;
If Me.ActiveForm.Name.ToString() = "Form1" Then
MsgBox("Yes,Form1 is active")
Else
Msgbox("Nope,another form is active")
Else
Hope this helps,
Onur