Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 9, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/2a0045ed7732252186bc59db6601d498 to your computer and use it in GitHub Desktop.
Save bjoerntx/2a0045ed7732252186bc59db6601d498 to your computer and use it in GitHub Desktop.
private void textControl1_KeyDown(object sender, KeyEventArgs e) {
//reset the zoom back to the default (100%) when presing Ctrl + 0
if (e.Control && (e.KeyCode == Keys.NumPad0 || e.KeyCode == Keys.D0)) {
textControl1.Zoom(100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment