Parth48
asked on
how can i get screen width and height in my C#.net window application ??
i want to know that how can i get screen width and height in my C#.net window application ??
because i want to use it in form location ...
for ex.
so can u tell me how can i get screen width and height in my C#.net window application ??
because i want to use it in form location ...
for ex.
Form objForm = this.findform();
objForm.Location = new Point(screen_width / 4 , screen_height / 4);
so can u tell me how can i get screen width and height in my C#.net window application ??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Why not just this.width and this.height as anonymous calls to the application. It's one the ways I use to dynamically change the shape/size of my applications or controls.
This will authomatically inherit your main windows methods. So you can define them like so
this.Height = 220;
this.Width = 220;
Simple enough or grab the values.
Double saveHeight = this.Height;
This will authomatically inherit your main windows methods. So you can define them like so
this.Height = 220;
this.Width = 220;
Simple enough or grab the values.
Double saveHeight = this.Height;
http://social.msdn.microsoft.com/Forums/en/Vsexpressvcs/thread/aba4d7cb-8114-4018-bff0-582756c0ae70