anyone please know how to change screen resolution using VB.net??
please i need this so soon :( :( :( :( :( :( :(
Printable View
anyone please know how to change screen resolution using VB.net??
please i need this so soon :( :( :( :( :( :( :(
This is classic visual basic forum, not VB.net forum.
Yep. See the attached BAS file.
True...Quote:
This is classic visual basic forum, not VB.net forum.
But maybe it works in .NET?
I would recommend looking at the Classic VB FAQ (link below) for this, as there is an explanation of why changing the resolution is often a bad idea.
Anyhoo, I've moved this thread to the VB.Net forum.
No, vb.net is far different from VB6 I believeQuote:
Originally Posted by Frodo_Baggins
Here is a VB6 example using APIs.
Try to convert to .net
Usually people dont like it when a program changes the resolution of their system. Are you at least going to revert the settings when your app closes or ???
I provided a link to a VB.NET code example that changes screen resolution for the same question at another forum, but I have to say that I agree that it is generally a bad idea. The only programs that I've ever had that changed my resolution have been games that run in full-screen mode and changed it back afterwards. I have a wide-screen monitor in portrait mode running at 1200 x 1920. I'd be pretty peeved if some app decided to change that to 800 x 600 or something. Remember also that many LCD monitors look awful at anything other than their native resolution. I guess we don't know so I should ask, what is the reason for changing the resolution and are you giving the user an option to stick with their current resolution?