Answers for "textbox gotfocus wpf"

Go
0

textbox gotfocus wpf

<TextBox Name="tb"
         GotFocus="tb_GotFocus" />
Posted by: Guest on June-01-2020
0

textbox gotfocus wpf

private void tb_GotFocus(object sender, RoutedEventArgs e)
{
  TextBox tb = sender as TextBox;
  if (tb != null) {
    tb.SelectAll(); //select all text in TextBox
  }
}
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language