473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

Similar topics

23
by: Dufe | last post by:
Hello all: To deal with the problem of differing user screen resolutions, I've explored: 1) making the pages in PHP, 2) having different pages on the same page and selecting the proper one via...
3
by: JIM.H. | last post by:
Hello, Is there any way I can get current screen resolution setting in asp.net. I am trying to get it and set the reportviewer component size so that scroll bars on the reportviewer component are...
1
by: fabrice | last post by:
Hi, I'm trying to get the screen resolution of the client and to realize a treatment in code behind. it seem to be hard. I can get information about the resolution with this following sub,...
1
by: Carlos Albert | last post by:
Hi, I need to get some statistic about wich resolution are my customers using, how can I get the current screen resolution from the codebehind, so I can store it in a database?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
3
by: Joe Withawk | last post by:
Using the Scleen class you can get information about the bounds of the displays on the system, but if you temporarely change the resolution (by creating a full screen directx device with other...
3
by: Thomas Morton | last post by:
This is a "thing" that has been annoying me all morning: and I can't work out how to do it. I need a way to get the DPI or screen resolution of the monitor that a script is currently runnign on....
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...

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.