PC Review


Reply
Thread Tools Rate Thread

C# and screen

 
 
Alexander Vasilevsky
Guest
Posts: n/a
 
      11th Jul 2008
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


 
Reply With Quote
 
 
 
 
Ciaran O''Donnell
Guest
Posts: n/a
 
      11th Jul 2008
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
>
>
>

 
Reply With Quote
 
Carlos
Guest
Posts: n/a
 
      19th Jul 2008
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" <(E-Mail Removed)> escreveu na mensagem
news:g56712$2qi6$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Pavel Minaev
Guest
Posts: n/a
 
      19th Jul 2008
On Jul 11, 3:46*am, "Alexander Vasilevsky" <m...@alvas.net> 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


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
 
Reply With Quote
 
Todd Carnes
Guest
Posts: n/a
 
      19th Jul 2008
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

 
Reply With Quote
 
Carlos
Guest
Posts: n/a
 
      31st Jul 2008
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" <(E-Mail Removed)> escreveu na mensagem
news:g5t876$k4t$(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen resolution changing to unsuported screen res during Start up - blank screen??? rj Windows XP General 3 17th Aug 2007 06:37 PM
Black screen for around 10 minutes between windows splash screen and welcome screen schnoid.zukovsky@gmail.com Windows XP Help 1 21st Aug 2006 11:53 PM
Screen returns to logon screen after screen saver JIM Windows XP General 1 24th Apr 2004 04:20 AM
Possible show other screen for "Installing your personal data" screen after the wellcome screen & before logon screen ? Pivert Windows XP Customization 2 18th Apr 2004 05:33 PM
Total newbie upgrade from Win98; print screen can I record screen movies? Keith R Windows XP New Users 0 17th Nov 2003 07:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:22 AM.