Answers for "how to minimum text length in textbox in c#"

C#
0

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");
    }
}
Posted by: Guest on November-13-2020

Code answers related to "how to minimum text length in textbox in c#"

C# Answers by Framework

Browse Popular Code Answers by Language