I want to alter the screen resolution when my program starts to ensure that all users will see the program the same i am choosing a safe resolution of 800x600, is there code that on form load can alter the resolution to this?
Setting the screen resolution takes some API calls. There are threads here that have it, do a search for them.
Just as a note, setting someone's screen size through code without their approving it is generally frowned upon. It's better to either:
1: Give them a messagebox that tells them that the screen resolution has to be a certain size before your program will run, and let them decide if they want to do it.
2: Use code to adapt your forms to whatever screen size the user has.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.