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.