Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

error provider c#

private void textBox1_Validating(object sender, System.ComponentModel.CancelEventArgs e)  
{  
    ValidateName();  
}  
private bool ValidateName()  
{  
    bool bStatus = true;  
    if (textBox1.Text == "")  
    {  
        errorProvider1.SetError(textBox1, "Please enter your Name");  
        bStatus = false;  
    }  
    else  
        errorProvider1.SetError(textBox1, "");  
    return bStatus;  
}  
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# substring from end 
Csharp :: c# size of enum 
Csharp :: visual studio fix formatting 
Csharp :: convert comma separated string to array c# 
Csharp :: mvc 5 dropdownlist 
Csharp :: c# run loop x times 
Csharp :: C# How to read users input and display it 
Csharp :: get current playing animation of animator unity 
Csharp :: header export excel data only php 
Csharp :: c# socket connect timeout 
Csharp :: convert.tostring with datetime string 
Csharp :: copy 2d arrays C# 
Csharp :: c# get command line arguments 
Csharp :: c# environment variables 
Csharp :: how to instantiate a gameobject 
Csharp :: create line in unity 
Csharp :: unity reverse string 
Csharp :: unity icons 
Csharp :: total months between two dates c# 
Csharp :: unity how to move an object 
Csharp :: arrays in c# 
Csharp :: wpf make size fill all grid 
Csharp :: Throw index out of range C# 
Csharp :: c# change label from thread 
Csharp :: color unity 
Csharp :: how to check if the value is alphabet only in c# 
Csharp :: httpcontext in .net standard 
Csharp :: string to byte array c# 
Csharp :: datatable to array c# 
Csharp :: unity create empty gameobject in code 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =