how to validate textbox using errorprovider in c#

please give me reply sir

an errorProvider is just a means of displaying errors to your user.
Handle the textbox TextChanged event, check the values input and if it isn't valid the call the errorProvider.SetError() method to assign an error message to the textbox.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.