Results 1 to 9 of 9

Thread: change screen resolution??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Posts
    26

    Exclamation change screen resolution??

    anyone please know how to change screen resolution using VB.net??

    please i need this so soon

  2. #2
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: change screen resolution??

    This is classic visual basic forum, not VB.net forum.

  3. #3
    Hyperactive Member Frodo_Baggins's Avatar
    Join Date
    Feb 2004
    Location
    Sao Paulo, Brazil
    Posts
    397

    Re: change screen resolution??

    Yep. See the attached BAS file.
    Attached Files Attached Files
    Ash Nazg durbatuluk, Ash Nazg gimbatul, Ash Nazg tharkathuluk, Agh barzum-ishi krimpatul.

  4. #4
    Hyperactive Member Frodo_Baggins's Avatar
    Join Date
    Feb 2004
    Location
    Sao Paulo, Brazil
    Posts
    397

    Re: change screen resolution??

    This is classic visual basic forum, not VB.net forum.
    True...
    But maybe it works in .NET?
    Ash Nazg durbatuluk, Ash Nazg gimbatul, Ash Nazg tharkathuluk, Agh barzum-ishi krimpatul.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: change screen resolution??

    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.

  6. #6
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: change screen resolution??

    Quote Originally Posted by Frodo_Baggins
    True...
    But maybe it works in .NET?
    No, vb.net is far different from VB6 I believe

  7. #7
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Cochin, India
    Posts
    350

    Re: change screen resolution??

    Here is a VB6 example using APIs.
    Try to convert to .net
    DOK OCK : "The power of .net in the palm of my hand, nothing will stand in my way. Nothing."

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: change screen resolution??

    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 ???
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: change screen resolution??

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width