Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
  }
}
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #textbox #gotfocus #wpf
ADD COMMENT
Topic
Name
7+7 =