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

C# and screen

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.