Creating applications for different screen sizes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thiago777
    New Member
    • May 2007
    • 89

    Creating applications for different screen sizes

    I ran to the problem that after creating my app in a 1024x768 monitor and running it in a lower resolution (800x600), the texts of the buttons and labels where not appearing completly/correctly.

    Is there a way to assure that your application will be compatible with most used monitor resolutions?

    thanks!
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    I usually design for the lower resolution, however you can check toe resolution in JS. HTH.

    Comment

    • thiago777
      New Member
      • May 2007
      • 89

      #3
      Originally posted by kenobewan
      "toe resolution in JS. HTH."
      JS HTH ..what is that ??

      Comment

      • thiago777
        New Member
        • May 2007
        • 89

        #4
        Originally posted by kenobewan
        I usually design for the lower resolution, however you can check toe resolution in JS. HTH.
        What do you mean with toe resolution in JS?

        Comment

        • kenobewan
          Recognized Expert Specialist
          • Dec 2006
          • 4871

          #5
          Screen resolution can be detected through JavaScript. "Toe" was a typo for the.

          Comment

          • thiago777
            New Member
            • May 2007
            • 89

            #6
            Sorry if I didnt mention before, but this is a VB app!
            thanks!

            Comment

            • kenobewan
              Recognized Expert Specialist
              • Dec 2006
              • 4871

              #7
              Is that vb or vb.net?

              Comment

              • thiago777
                New Member
                • May 2007
                • 89

                #8
                Its Vb.net, with Microsoft Visual Studio..

                Comment

                • dip_developer
                  Recognized Expert Contributor
                  • Aug 2006
                  • 648

                  #9
                  Originally posted by thiago777
                  Its Vb.net, with Microsoft Visual Studio..
                  you can use the Screen object to set height / width of your Form like....

                  [CODE=vb.net]
                  Form1.Height=Sc reen.Height
                  Form1.Width=Scr een.Width
                  [/CODE]

                  and for setting any control location or height or width dont use absolute referencing.... ...... dont use any hard coded value like.....

                  [CODE=vbnet] Button1.Locatio n=New Point(10,10)[/CODE]

                  rather use
                  [CODE=vbnet]Button1.Locatio n=New Point(Me.Locati on.X-10,Me.Location. Y-10)[/CODE]

                  Comment

                  • jigsmshah
                    New Member
                    • Aug 2007
                    • 14

                    #10
                    winforms has a property called AutoScroll or autoscrollbar,t ry to set it to true.
                    else set scroll bar to true.this will work.
                    MSDN has some articles that mentoins about a property,i am right now cant remember,but that didnt work for me.
                    like we had a winforms app and users were using that app at different resolutions.So the users were not able to reach most of the buttons,so if u provide a scroll bar then user can scroll down to the buttons.
                    Hope this make sense an di am sure this will solve ur problem
                    do let me know if u need anything else.
                    Regards
                    Jignesh

                    Comment

                    Working...