471,318 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

startposition

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
Jan 8 '06 #1
5 4341
Howard wrote:
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


I am assuming you mean a windows forms application. A Form has a
property called StartPosition see:
http://msdn.microsoft.com/library/de...itiontopic.asp
for more information. Setting it to FormStartPosition.Manual and then
setting the Location property to new Point(0, 0); should do the trick.

Regards,

Olle
Jan 8 '06 #2
thanks,

is there a way to make it starts at bottom right corner and works in all
screen resolutions?
"O.S. de Zwart" <ol**@variomatic.biz> wrote in message
news:43***********************@dreader18.news.xs4a ll.nl...
Howard wrote:
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


I am assuming you mean a windows forms application. A Form has a property
called StartPosition see:
http://msdn.microsoft.com/library/de...itiontopic.asp
for more information. Setting it to FormStartPosition.Manual and then
setting the Location property to new Point(0, 0); should do the trick.

Regards,

Olle

Jan 8 '06 #3
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
"Howard" <ho*******@yahoo.com> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
thanks,

is there a way to make it starts at bottom right corner and works in all
screen resolutions?
"O.S. de Zwart" <ol**@variomatic.biz> wrote in message
news:43***********************@dreader18.news.xs4a ll.nl...
Howard wrote:
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


I am assuming you mean a windows forms application. A Form has a property
called StartPosition see:
http://msdn.microsoft.com/library/de...itiontopic.asp
for more information. Setting it to FormStartPosition.Manual and then
setting the Location property to new Point(0, 0); should do the trick.

Regards,

Olle


Jan 8 '06 #4
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
"Howard" <ho*******@yahoo.com> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
thanks,

is there a way to make it starts at bottom right corner and works in all
screen resolutions?
"O.S. de Zwart" <ol**@variomatic.biz> wrote in message
news:43***********************@dreader18.news.xs4a ll.nl...
Howard wrote:
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


I am assuming you mean a windows forms application. A Form has a property
called StartPosition see:
http://msdn.microsoft.com/library/de...itiontopic.asp
for more information. Setting it to FormStartPosition.Manual and then
setting the Location property to new Point(0, 0); should do the trick.

Regards,

Olle


Jan 8 '06 #5
> 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.

Jan 9 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by C-Sharper or C-Hasher, one of the two | last post: by
1 post views Thread by Richard Loupatty | last post: by
2 posts views Thread by Stephen Costanzo | last post: by
3 posts views Thread by sklett | last post: by
3 posts views Thread by smellican | last post: by
2 posts views Thread by Phillip Ross Taylor | last post: by
6 posts views Thread by Eric B. | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.