By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,129 Members | 2,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,129 IT Pros & Developers. It's quick & easy.

Form StartUpPosition

P: n/a
I've got a small form (400 X 310) and I want it to start up in the lower
right corner of the screen. Is there a way I can easily do this?

Thanks
Feb 22 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Jason" <ja***@someone.com> schrieb:
I've got a small form (400 X 310) and I want it to start up in the lower
right corner of the screen. Is there a way I can easily do this?


You could use 'Screen.PrimaryScreen.WorkingArea' to get the height/width of
the screen and then position your form accordingly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 22 '06 #2

P: n/a
I should of probably mentioned, that I'm a VB.net newbie.

could you explain further into detail.
Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Jason" <ja***@someone.com> schrieb:
I've got a small form (400 X 310) and I want it to start up in the lower
right corner of the screen. Is there a way I can easily do this?


You could use 'Screen.PrimaryScreen.WorkingArea' to get the height/width
of the screen and then position your form accordingly.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 22 '06 #3

P: n/a
"Jason" <ja***@someone.com> schrieb:
I should of probably mentioned, that I'm a VB.net newbie.


Try this:

\\\
With Screen.PrimaryScreeen.WorkingArea
Me.Location = New Point(.Width - Me.Width, .Height - Me.Height)
End With
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Feb 22 '06 #4

P: n/a
When I add that code to mine, the Screen.PrimaryScreen becomes underlined,
with the caption that PrimaryScreen is not a member of
'System.Windows.Forms.Screen
What does that mean?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:up**************@TK2MSFTNGP15.phx.gbl...
"Jason" <ja***@someone.com> schrieb:
I should of probably mentioned, that I'm a VB.net newbie.


Try this:

\\\
With Screen.PrimaryScreeen.WorkingArea
Me.Location = New Point(.Width - Me.Width, .Height - Me.Height)
End With
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 23 '06 #5

P: n/a
I've got it working, thanks for your help.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:up**************@TK2MSFTNGP15.phx.gbl...
"Jason" <ja***@someone.com> schrieb:
I should of probably mentioned, that I'm a VB.net newbie.


Try this:

\\\
With Screen.PrimaryScreeen.WorkingArea
Me.Location = New Point(.Width - Me.Width, .Height - Me.Height)
End With
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 23 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.