I want to set resolution automatically when my program will run. I want to make it (resolution) 1280*1024. What should I write there in my vb.net program to set resolution when my program will run? When user will stop using my program it will get default resolution. Thats all. Please help me.

It's not a very nice thing to do really.
What if the users monitor happens to not support that resolution?
It would be more beneficial to adjust your program to be more dynamic instead.

But if you insist: Here's how

If this was helpful, please mark this thread as solved.