About Graphical User Interface(GUI)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • softwaregeek
    New Member
    • Mar 2007
    • 27

    #1

    About Graphical User Interface(GUI)

    Hi all,
    I am using vb 6 on windows Xp.My problem is that suppose i have designed a form(.frm) My present resolution is 800*600 and i change it to 1024*768.now as i have changed the resolution everything gets shrinked...the same thing affects on vb application. i mean i have desined everything according to 800*600 but if client's resolution is different one than also it should run properly ...so what's the solution .Hope you got my problem...

    Thanx...
  • devonknows
    New Member
    • Nov 2006
    • 137

    #2
    I had the same problem a while back the only thing i could suggest is use % of the forms width and height for example
    Code:
    List1.Width = Me.Width / 100 * 10
    Will make List1's width 10% of your forms width, possibly place that into your form load or to a module. I prefer into a module as you can call it again when you place it into your Form_Resize.

    Not sure if anyone has a better way of doing it, this might help ye though

    Kind Regards
    Devon.

    Comment

    • softwaregeek
      New Member
      • Mar 2007
      • 27

      #3
      Originally posted by devonknows
      I had the same problem a while back the only thing i could suggest is use % of the forms width and height for example
      Code:
      List1.Width = Me.Width / 100 * 10
      Will make List1's width 10% of your forms width, possibly place that into your form load or to a module. I prefer into a module as you can call it again when you place it into your Form_Resize.

      Not sure if anyone has a better way of doing it, this might help ye though

      Kind Regards
      Devon.

      hi devon,
      thanx for your reply...but this solution isnt feasible for me as there are more than 20 different controls like labels,text box,grid view etc ...on my form...

      Comment

      • bergy
        New Member
        • Mar 2007
        • 89

        #4
        Originally posted by softwaregeek
        hi devon,
        thanx for your reply...but this solution isnt feasible for me as there are more than 20 different controls like labels,text box,grid view etc ...on my form...
        Unfortunatly with VB6 that is the only way to do it (using the standard controls that come with VB). You should consider upgrading to VB .NET which will allow you to dock controls that will automatically change sizes with the window. Outside of upgrading to .NET and doing what devon suggested you're out of luck AFAIK.

        Comment

        • devonknows
          New Member
          • Nov 2006
          • 137

          #5
          Ive never used .NET so couldnt advise but didnt think there was any other way of doing it in VB 6.0 anyway, if i find anything will let ya know.

          Kind Regards
          Devon.

          Comment

          Working...