Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to minimum text length in textbox in c#

private void TextBox_LostFocus(object sender, RoutedEventArgs e)
{
    if (((TextBox)sender).Text.Length < 5)
    {
        MessageBox.Show("You need to write at least 5 characters");
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# how to print 
Csharp :: how to skip bin/Debug/netcoreapp3.1/ on the reltaive path 
Csharp :: unity rigid body variable 
Csharp :: Write text in Word Document at specific location using C# 
Csharp :: c# convert to nullable datetime 
Csharp :: simple code to call rest api c# 
Csharp :: published net core did not have wwwroot 
Csharp :: decrease image size C# 
Csharp :: c# next level script 
Csharp :: c# random number between 0 and 1 
Csharp :: input field to float unity 
Csharp :: c# string to float 
Csharp :: convert uint to int C# 
Csharp :: linked list revrse 
Csharp :: c# modify dictionary in loop 
Csharp :: c# draw rectangle on screen 
Csharp :: get domain name from email in asp.net c# 
Csharp :: c# linq to select even numbers 
Csharp :: razor concatonate inline 
Csharp :: Failed to generate swagger file. Error dotnet swagger tofile --serializeasv2 --output 
Csharp :: c# singleton 
Csharp :: c# obsolete class 
Csharp :: searching for keys in the registry 
Csharp :: c# make a automapper 
Csharp :: loop for specific time c# 
Csharp :: c# const 
Csharp :: iterate through photon player gameobjects 
Csharp :: run dll file 
Csharp :: docker Test a Connection using Curl 
Csharp :: Unity Object rotation along any axis 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =