startposition

  • Thread starter Thread starter Howard
  • Start date Start date
H

Howard

how can i make a program that always start at the top left corner of the
screen in c#?

vs does seem to have that option
 
how can i make a program that always start at the top left corner of the
screen in c#?

I would just set StartPosition to FormStartPosition.Manual and Location
to (0,0) in the constructor/initialise event for the main form.
 
thanks,

is there a way to make it starts at bottom right corner and works in all
screen resolutions?
 
Hello

There can be a way to start it at Bottom Right Corner, but u can to perform
little calculation.

1. Get the Screen Resolution.
2. X = Subtract the Width from the X-Value of the Resolution
3. Y = Subtract the Height from the Y-Value of the Resolution
4. After getting the resulting values, assign it to the start position (X,Y)




--
ALI RAZA SHAIKH
MCAD.net

alirazashaikh.blogspot.com
www.programmersparadise.cjb.net
 
Hello

You can use the Following Class for the Resolution Size at Any PC whether it
is (800x600) or anything else

SystemInformation.VirtualScreen.Height
SystemInformation.VirtualScreen.Width




--
ALI RAZA SHAIKH
MCAD.net

alirazashaikh.blogspot.com
www.programmersparadise.cjb.net
 
Back
Top