本文介绍了如何删除错误图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

在我的文本框中,我使用设置错误
但是当statemet为true时,如何删除错误图标


ep2.SetError(t1,"incorrct");

hi to all!

here in my textbox i use set error
but when the statemet is true then how to remove the error icon


ep2.SetError(t1, "incorrct");

推荐答案

ep2.SetError(t1, String.Empty);



http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.clear.aspx [ ^ ]



http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.clear.aspx[^]


这篇关于如何删除错误图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 00:35