469,572 Members | 1,605 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

How to find out current Screen resolution?

I'm creating WinForm app. I would like to set the form position according to
current Screen resolution. So how could I find the current resolution?

Thanks...

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200608/1

Aug 27 '06 #1
4 5718
On Sun, 27 Aug 2006 00:57:05 GMT, "pedestrian via DotNetMonster.com" <u16758@uwewrote:
>I'm creating WinForm app. I would like to set the form position according to
current Screen resolution. So how could I find the current resolution?

Thanks...
(VB2005)

In a code window, right-click:
Navigate >Insert Snippet: Windows Operating System System Information Determine Desktop
Resolution
Gene
Aug 27 '06 #2
What a brilliant trick... I don't even know there're such useful "insert
snippet" in VS...
Thanks a million Gene!

gene kelley wrote:
>>I'm creating WinForm app. I would like to set the form position according to
current Screen resolution. So how could I find the current resolution?

Thanks...
--
Regards,
Pedestrian, Penang.

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200608/1

Aug 27 '06 #3
"pedestrian via DotNetMonster.com" <u16758@uweschrieb:
I'm creating WinForm app. I would like to set the form position according
to
current Screen resolution. So how could I find the current resolution?
'SystemInformation.WorkingArea¬*', 'Screen.PrimaryScreen.WorkingA¬*rea',
'Screen.AllScreens.WorkingArea'.

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

Aug 27 '06 #4
Thanks, Herfield.

Herfried K. Wagner [MVP] wrote:
>"pedestrian via DotNetMonster.com" <u16758@uweschrieb:
>I'm creating WinForm app. I would like to set the form position according
to
current Screen resolution. So how could I find the current resolution?

'SystemInformation.WorkingArea¬*', 'Screen.PrimaryScreen.WorkingA¬*rea',
'Screen.AllScreens.WorkingArea'.
--
Regards,
Pedestrian, Penang.

Message posted via http://www.dotnetmonster.com

Aug 28 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by JIM.H. | last post: by
1 post views Thread by fabrice | last post: by
1 post views Thread by Carlos Albert | last post: by
5 posts views Thread by Maxi | last post: by
9 posts views Thread by Steve Wright | last post: by
3 posts views Thread by Joe Withawk | last post: by
3 posts views Thread by Thomas Morton | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.