Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

How can I get the list of available screen resolutions of computer.
I'm using Visual Studio 2013.

Thanks
Posted
Updated 17-Nov-14 0:32am
v2
Comments
syed shanu 17-Nov-14 6:37am    
Hi,
Check this links hope this will help you.
http://www.freevbcode.com/ShowCode.asp?ID=5915
http://stackoverflow.com/questions/4122691/getting-screen-resolution
http://stackoverflow.com/questions/9620672/how-to-get-total-pixel-size-of-the-screen

1 solution

You'll need to invoke EnumDisplaySettingsEx.
There is a C# example here: http://stackoverflow.com/questions/744541/how-to-list-available-video-modes-using-c[^]
Which it shouldn't be too difficult to translate to VB.
 
Share this answer
 
Comments
hansoctantan 17-Nov-14 7:27am    
Thanks.. link works perfectly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900