How to increase or decrease font size in web browser

To make the font size larger in your web browser (Internet Explorer, Firefox, Chrome, Safari, etc.):

  • Windows PC: Press [Ctrl] + [+]
  • Mac: Press [Command] + [+]

To make the font size smaller in your web browser:

  • Windows PC: Press [Ctrl] + [-]
  • Mac: Press [Command] + [-]

To set the font size back to the “default” size for the web browser:

  • Windows PC: Press [Ctrl] + [0]
  • Mac: Press [Command] + [0]

Increase/Decrease Textbox Font Size Programatically (VB.NET)

[vbnet]
Private Sub frm_Main_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
‘ Ctrl + + = increase the SQL size
If e.Control And e.KeyCode = Keys.Add Then
Using f As Font = TextBox1.Font
TextBox1.Font = New Font(f.FontFamily, f.Size + 1, f.Style)
End Using
Exit Sub
End If

‘ Ctrl + – = decrease the SQL size
If e.Control And e.KeyCode = Keys.Subtract Then
Using f As Font = TextBox1.Font
TextBox1.Font = New Font(f.FontFamily, f.Size – 1, f.Style)
End Using
Exit Sub
End If
End Sub
[/vbnet]