473,513 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4455
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2780
by: C-Sharper or C-Hasher, one of the two | last post by:
Hi Guys and Gals, I have a small, two form, application. Form1 is the main window and Form2 is a small window that has a label and a progress bar on it. I wish to display form2 whilst doing some...
1
1953
by: DotNetMania | last post by:
How do you specify the startPosition of common dialog boxes in C#? such as OpenFileDialog there is not Position or Location method.... best regards... charles
3
4022
by: cider123 | last post by:
Everything I've read so far states you can't inherit or extend these dialogs because they're "sealed". I considered building my own custom control, but I haven't been able to find: 1) How to...
1
1354
by: Richard Loupatty | last post by:
Does anyone know how to control windows mediaplayer? I would like to give the user the possibility to skip in the player by setting a new startposition. tia Richard
2
2140
by: Stephen Costanzo | last post by:
I have a blank form and my Sub New is as follows: Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent()
3
11003
by: sklett | last post by:
I thought this would be easy. I want to position a login form based on whether or not it has a parent form, so I tried this: <code> if (ParentForm == null) { StartPosition =...
3
1754
by: smellican | last post by:
Is there an easy way to set the starting position of a common dialog such as savefiledialog, printdialog, fontdialog, etc.? There doesn't seem to be a StartPosition property for common dialogs.
2
13517
by: Phillip Ross Taylor | last post by:
I have configured a few of the windows I am working on to have the form value "Start Position" to be "CenterParent" but some of them don't. Does Center Parent only work when the dialog is modal?...
6
5189
by: Eric B. | last post by:
I posted about this before but it is still bugging me. I am creating an instance of form2 from my form1, and although I have the StartPosition set to CenterParent for the form2 it is not...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.