Home All Groups Group Topic Archive Search About

How to find out current Screen resolution?

Author
27 Aug 2006 12:57 AM
pedestrian via DotNetMonster.com
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...


Author
27 Aug 2006 3:28 AM
gene kelley
On Sun, 27 Aug 2006 00:57:05 GMT, "pedestrian via DotNetMonster.com" <u16758@uwe> 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...

(VB2005)

In a code window, right-click:
Navigate >Insert Snippet: Windows Operating System > System Information > Determine Desktop
Resolution


Gene
Author
27 Aug 2006 4:01 AM
pedestrian via DotNetMonster.com
What a brilliant trick... I don't even know there're such useful "insert
snippet" in VS...
Thanks a million Gene!

gene kelley wrote:
Show quoteHide quote
>>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/Forums.aspx/dotnet-vb-net/200608/1
Author
27 Aug 2006 10:41 AM
Herfried K. Wagner [MVP]
"pedestrian via DotNetMonster.com" <u16758@uwe> schrieb:
> 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/>
Author
28 Aug 2006 5:48 AM
pedestrian via DotNetMonster.com
Thanks, Herfield.

Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
>"pedestrian via DotNetMonster.com" <u16758@uwe> schrieb:
>> 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