Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey everyone,

 

does anyone know a method for changing font sizes when resolution of the screen changes? (ie. font 12 in 1024x768 resolution looks ok but it gets reaaally small in any high resolution so i would like to change the font so it gets bigger as resolution increases as well.)

 

thaaanks :D

  • Leaders
Posted

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

       Select Case Screen.PrimaryScreen.Bounds.Width
           Case 800
               MsgBox("you need your fonts set at 10")
               '/// set your font sizes here...
           Case 1024
               MsgBox("you need your fonts set at 12")
           Case 1152
               MsgBox("you need your fonts set at 14")
           Case 1280
               MsgBox("you need your fonts set at 16")
           Case 1600
               MsgBox("you need your fonts set at 18")
       End Select

   End Sub

 

then you can decide which items to set the font sizes on.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...