Search
 
SCRIPT & CODE EXAMPLE
 

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
  }
}
Comment

textbox gotfocus wpf

<TextBox Name="tb"
         GotFocus="tb_GotFocus" />
Comment

PREVIOUS NEXT
Code Example
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: c# byte + byte is int 
Csharp :: what is failure 
Csharp :: the name scripts does not exist in the current context mvc 5 
Csharp :: if statement in razor using "?" and ":" 
Csharp :: c# in equivalent 
Csharp :: how to check if button is pressed unity 
Csharp :: run a command line from vb.net app 
Csharp :: .net core login redirect loop 
Csharp :: rigidbody.velocity.magnitude 
Csharp :: How to set default page asp.net MVC 
Csharp :: c sharp async 
Csharp :: c# textbox kodu 
Csharp :: c# Write a program to reverse an array or string 
Csharp :: HttpClient .net Core add Certificate 
Csharp :: c# multiple exceptions same handler 
Csharp :: value is null to insert in c# 
Csharp :: c# run a scheduled task 
Csharp :: .net using appsettings variables 
Csharp :: register all services microsoft .net core dependency injection container 
Csharp :: add rotation 
Csharp :: jobject alternative in system.text.json 
Csharp :: create anchor tag dynamically c# 
Csharp :: ef save changes 
Csharp :: c# namespace name form1 could not be found 
Csharp :: transform.lookat 2d 
Csharp :: c# execute after delay 
Csharp :: get link element revit api 
Csharp :: build url mvs view 
Csharp :: unity mouse click 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =