Font Change

gorilla

Member
Joined
Jun 12, 2003
Messages
12
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
 
Code:
    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.
 
Back
Top