C chidambaram Well-known member Joined Dec 27, 2007 Messages 62 Location Chennai,India Programming Experience Beginner Feb 1, 2008 #1 hi, How can i get the control of currently active window using vb.net? thanks in advance
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,875 Location Norway Programming Experience 10+ Feb 1, 2008 #2 From the Form.ActiveForm Property (shared). If you meant other applications you have to use Win32 API methods, for example GetForegroundWindow returns the window handle. Upvote 0 Downvote
From the Form.ActiveForm Property (shared). If you meant other applications you have to use Win32 API methods, for example GetForegroundWindow returns the window handle.