How can I get the size and the position of a Window in C#?
I read about the GetWindowRect
function, but I do not understand how to use it.
Can anyone please give me a example on how to use it? (I'd like to get the position of notepad++)
Get window position and size C#
991 Views Asked by darude_cod3r At
2
Form.Location.X
andForm.Location.Y
will give you the X and Y coordinates of the top left corner.For your own Form application is the code this.