Minimizing, Maximizing and Making Foreground Window

batman93212

New member
Joined
Nov 18, 2006
Messages
2
Programming Experience
3-5
Good Day,

I have worked in VB6 for a while, but i am slowly switching to vb.net 2005. I want my new program to get the Hwnd of a window, then Minimize it, Maximize it, and set it to be the foreground window.

Now i have used google, and found a lot of resources for this using vb6 but i want to use vb.net 2005. I belives it uses an API call for .net, but is there a .net native way of doing it?

Any one have any good ideas or links on this topic?

Thank you in advance.

Cbat
 
There is no native .net way of doing it, but you only need one API which is

VB.NET:
WindowFromPoint

It will return the hWnd of the window that the cursor is currently in.
 
Back
Top