gorilla Posted June 17, 2003 Posted June 17, 2003 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 Quote
Leaders dynamic_sysop Posted June 17, 2003 Leaders Posted June 17, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.