private void textBoxDoubleClick(object sender, EventArgs e) { Tb.Visible = true; ((Label)sender).Visible = false; Tb.SelectAll(); Tb.Focus(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { Tb.Focus(); Tb.SelectAll(); Keyboard.Focus(Tb); }