Current Active Window using vb.net

ajeeshco

Well-known member
Joined
Sep 19, 2006
Messages
257
Location
Cochin, India
Programming Experience
3-5
Hi,
How can I get the current active window using vb.net. I think I have to use COM interoperability, If so plz:) tell me how can I do it.
 
Do you mean the active window within your app or from any running process? If you mean any process then there's no COM involved. You need to call the Windows API GetForegroundWindow function.
 
Back
Top