Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I've been searching for days for this and I still don't know how to go about it. Internet search results to bits and pieces possibly in other languages.. That is a common task, no? So it should be trivial!

Can anyone post source code of an example working under vb 2010 ?
Please help !

What I have tried:

Many things!
eg.

Dim changer As ScreenResolution = new ScreenResolution()
Dim success As Boolean = changer.ChangeResolution(800,600,24)

"ScreenResolution" is not defined properly.
Posted
Updated 12-Nov-18 19:17pm
v2

 
Share this answer
 
Comments
George Papamichael 12-Nov-18 3:34am    
Thanks! and why didn't I think of this myself ?!
Richard MacCutchan 12-Nov-18 3:56am    
That's what baffles most of us here.
George Papamichael 16-Nov-18 3:04am    
Fine! The thing I need to do now is get a list of all supported screen resolutions, so as to change the resolution to one of the supported modes. Anyone know how to do that ? pls help.
The better question is why would you want to?

Do that on my machine and I'll uninstall your app before you can even begin to ask why.

Changing screen resolution is up to the user, not your app. If you change the resolution, you also change the layout of every icon on the users desktop, forcing them to put all their icons back to exactly where they want them, and pissing users off in the process.

The answer to your question is simple. You don't ever change system-wide settings from your application.
 
Share this answer
 
Do you know m.a.m.e. ? Multiple arcade machine emulator. It has a big bunch of video games. I want to make something like that, and so I need to change to a custom resolution, color mapping and frequency and capture the mouse.
 
Share this answer
 
Comments
CHill60 13-Nov-18 7:49am    
This is not a solution. Use the "Have a Question or Comment?" link if you want to comment on a post

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