i want to know which event is this when an application is running, its window is the active window currently, and another application gets selected from lets say the task bar or another application is run
which is this event
Printable View
i want to know which event is this when an application is running, its window is the active window currently, and another application gets selected from lets say the task bar or another application is run
which is this event
the application that has focus. i think it has to be an active form, not loading.
It might be WM_WINDOWPOSCHANGED, but I'm not absolutely sure. You'd want to check if it's the Z-order of the window being changed.
You can get that with a timer and checking the handle of the active window. You can do this with the GetActiveWindow or GetForegroundWindow APIs :)
first of all Check the Z-Order in which event n then the problem actually is that im displying a form in an MDI form, which is not a mdi child, so i want to change it as the mdi form changes, i have done it for mdi minimize that it hides, but now i want to also hide it when the window is deselected, i tried to use this code but it din't work
VB Code:
Private Sub MDIForm_Activate() Frm_Info.Visible = True End Sub Private Sub MDIForm_Deactivate() Frm_Info.Visible = False End Sub