How to place a star mark beside a not null textbox in winform like we can do in webform. And does winform has a value-required validator like in webform ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
ErrorProvidercontrol instead. It is meant for that kind of situation.According to MSDN: “ErrorProvider – Provides a user interface for indicating that a control on a form has an error associated with it.”
You can learn how to use it here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider%28v=VS.90%29.aspx#Y0