Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Creating resolution independent applications in VB.NET

Creating resolution independent applications in VB.NET

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Razanust
    wrote on last edited by
    #1

    I have created a VB.NET app, a small mcq based quiz. Now when i run it on a different resolution than my PC then all the items(labels,textboxes etc) on the form get scattered. How can we create resolution independent applications?

    M F 2 Replies Last reply
    0
    • R Razanust

      I have created a VB.NET app, a small mcq based quiz. Now when i run it on a different resolution than my PC then all the items(labels,textboxes etc) on the form get scattered. How can we create resolution independent applications?

      M Offline
      M Offline
      MicroVirus
      wrote on last edited by
      #2

      Windows Forms in .NET offers a great method variety of Autosizing, Docking and Align properties that should make it easier to get the positioning right for varying resolutions. You'll need to play around with them a bit to get a feel for it. Alternatively, if these don't offer enough power, you'll need to write your own control-positioning/sizing code in the Resize event for the form.

      1 Reply Last reply
      0
      • R Razanust

        I have created a VB.NET app, a small mcq based quiz. Now when i run it on a different resolution than my PC then all the items(labels,textboxes etc) on the form get scattered. How can we create resolution independent applications?

        F Offline
        F Offline
        Firo Atrum Ventus
        wrote on last edited by
        #3

        Try Anchoring or Docking[^] your controls. Remember, the Anchor and Dock properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.

        Excuse me for my improper grammar and typos. It's because English is my primary language, not my first language. My first languages are C# and Java. VB, ASP, JS, PHP and SQL are my second language. Indonesian came as my third language. My fourth language? I'm still creating it, I'll let you know when it's done! :-D

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups