Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

C# and screen

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Vasilevsky - 11 Jul 2008 00:46 GMT
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
Ciaran O''Donnell - 11 Jul 2008 01:31 GMT
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
Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> 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
Carlos - 19 Jul 2008 02:22 GMT
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.

> 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
Pavel Minaev - 19 Jul 2008 12:18 GMT
> 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
Todd Carnes - 19 Jul 2008 15:21 GMT
> 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
Carlos - 31 Jul 2008 00:36 GMT
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.

>> What are a function on work with adjusting a screen?
>> It is needed to show out all supported screen resolution and in
[quoted text clipped - 6 lines]
>
> Todd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.