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 we开发者_如何学JAVAbform ?
Use ErrorProvider
control 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
精彩评论