Advertisement
drkbl

MaskedTextBox Select All Text on Enter

Jan 5th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. // https://social.msdn.microsoft.com/Forums/windows/en-US/68c30f52-bba3-48c9-bf59-84304b75068d/maskedtextbox-and-selectall
  2.  
  3. private void maskedTextBox1_Enter(object sender, EventArgs e)
  4. {
  5.  this.BeginInvoke((MethodInvoker) delegate() {
  6.    txtbox.SelectAll();
  7.  });
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement