开发者

How to place a star mark beside a not null textbox in winform like we can do in webform

开发者 https://www.devze.com 2023-04-06 19:59 出处:网络
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 ins

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号