473,396 Members | 1,815 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,396 software developers and data experts.

C# and screen

What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in accordance
with chosen frequency...

http://www.alvas.net - Audio tools for C# and VB.Net developers
Jul 10 '08 #1
5 1654
This information is not available in .NET as far as I know. You can get the
current screen information but I dont this the potentials are available.
However, this information is probably available from Windows Management
Intrumentation. You would however need to find the query to access it.

Let us know if you find it
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Alexander Vasilevsky" wrote:
What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in accordance
with chosen frequency...

http://www.alvas.net - Audio tools for C# and VB.Net developers
Jul 11 '08 #2
I believe the only way is to use pInvoke,
but to access hardware Win32 apis
is not such an easy thing.
I would start by reading about WDM

Carlos.

"Alexander Vasilevsky" <ma**@alvas.netescreveu na mensagem
news:g5***********@behemoth.volia.net...
What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in accordance
with chosen frequency...

http://www.alvas.net - Audio tools for C# and VB.Net developers


Jul 19 '08 #3
On Jul 11, 3:46*am, "Alexander Vasilevsky" <m...@alvas.netwrote:
What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in accordance
with chosen frequency...

http://www.alvas.net- Audio tools for C# and VB.Net developers
You'll need to use P/Invoke to call Win32 API functions
EnumDisplaySettings and ChangeDisplaySettings. Here's a CodeProject
article on how to do that from C#:

http://www.codeproject.com/KB/cs/csdynamicscrres.aspx
Jul 19 '08 #4
Alexander Vasilevsky wrote:
What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in accordance
with chosen frequency...

http://www.alvas.net - Audio tools for C# and VB.Net developers

I think you have to use something like WinAPI, DirectX or XNA. I don't
think it can be done directly from C#.

Todd

Jul 19 '08 #5
I believe that DirectX re used to draw only, not to change hardware
configurations.
Now I remember Pavel´s answer is good, but perhaps WDM stuff is better.

Carlos.

"Todd Carnes" <to********@gmail.comescreveu na mensagem
news:g5**********@aioe.org...
Alexander Vasilevsky wrote:
>What are a function on work with adjusting a screen?
It is needed to show out all supported screen resolution and in
accordance with chosen frequency...

http://www.alvas.net - Audio tools for C# and VB.Net developers


I think you have to use something like WinAPI, DirectX or XNA. I don't
think it can be done directly from C#.

Todd

Jul 31 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
6
by: Tony Liu | last post by:
Hi, when switched to the full screen mode in VS.NET IDE, is there any way to hide the main menu bar? Thanks Tony
18
by: DavidS | last post by:
Have resW=screen.width; resH=screen.height in javascript. How can I read these values in ASP.NET source code - Page_Load function of code behind? Any suggestions?
0
by: Jeffery Tyree | last post by:
I have a machine that will be used to demo some Excel spreadsheets at a convention. Because I did not author the spreadsheets and attendees will be allowed to play with the spreadsheets, I needed...
0
by: Ian Ceicys | last post by:
I’ve been tasked with doing documentation on the project I’ve recently joined. Here’s what I’m looking for in terms of documentation. I want to generate a diagram from a huge .net 1.1...
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: Peter Oliphant | last post by:
I'm programming using MS VS VC++ 2008 Express (Beta 2) in /Cli pure mode. I've found the Screen class. With it I can very easily get the count and all the data on the various Screens attached to...
1
by: nasima khan | last post by:
Hi, i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code. Sub ChangeRes(X...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi All, i Have an application functionaluty which has 4 forms which are needed to interact by the user by dragging data from these forms to one another the main form is located in the MDI Parent...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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
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
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,...

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.