How to make GUI independent of the monitor Resolution ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vishwaskothari
    New Member
    • Aug 2007
    • 60

    How to make GUI independent of the monitor Resolution ???

    Hi,

    Is there any way that the GUI can be made independent of the resolution?

    And how to load a form in VB in its Maximize position?

    regards
    vishwas
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by vishwaskothari
    Is there any way that the GUI can be made independent of the resolution?
    This question has been raised a number of times at TheScripts. There are plenty of techniques you can use to adjust your display depending on the resolution, and there is a class of controls generally referred to as an "elastic" control which will do a lot of thw rok for you. Try a search on combinations of "VB", "CONTROL" and "ELASTIC" and see what you come up with.

    Originally posted by vishwaskothari
    And how to load a form in VB in its Maximize position?
    Well, if you're talking about VB6, just set the forms WindowState property to "2 - Maximized" at design time.

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by vishwaskothari
      Is there any way that the GUI can be made independent of the resolution?
      And how to load a form in VB in its Maximize position?
      Ok
      I you want to see your form on the whole monitor and don't want to use startmenu then use splash screens and set windowstate maximum
      then your app will be on whole monitor.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        You can check the following at startup and make the required adjustments accordingly

        [CODE=vb]X = Screen.Width / Screen.TwipsPer PixelX
        Y = Screen.Height / Screen.TwipsPer PixelY[/CODE]

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by debasisdas
          You can check the following at startup ...
          And that gives you what, the width and height of the screen in pixels?

          Comment

          Working...