Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常,表单上的所有控件都有一个ErrorProvider;但是我有一个控件子类型需要向用户显示错误的文本框。我不希望在每个可能使用的地方都放置一个错误提供程序(然后我想要更多的代码更改)
那么让我的每个控件创建自己的错误提供程序有什么问题吗?
不应该有任何问题,我宁愿说限制使用ErrorProvider 因为您将无法为不遵循模式的控件显示错误。