uwcodeman

Hi all,

Does anybody know if I can query errorprovider / control to check if it has an error

So, if I set error on myControl like so:

_errorProvider.SetError(myControl, errorMessage);

Can I programmatically determine if myControl has an error associated with it




Re: Windows Forms General Querying Errorprovider

frederikm

Hi

you can use the ErrorProvider.GetError method :)

http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformserrorproviderclassgeterrortopic.asp

Hope this helps you out, please close the thread if it does






Re: Windows Forms General Querying Errorprovider

uwcodeman

That sounds like what I need. Thanks, I'll give it a try!!