Search code examples
c#visual-studiowinformserror-handlingerrorprovider

Can't get rid of ErrorProvider message in Visual Studio 2022


I'm starting with c# as my second language and i'm doing a windows form app (.NET framework) with ms sql server db. I tried to erase an ErrorProvider (called ErrorProvider1) for the FirstName column after a quick test. However, it keeps popping up every time I insert a new row in DB even after deleting. I erased all the code related to it and also de ErrorProvider component in Dashboard.cs [Design]. It's not interfering with my Save method, but it's really annoying.

Any thoughts on that? Thanks for the help.

ErrorProvider message after delete

Not interfering with my code


Solution

  • Check wired events. Probably you got your button's function call in some event wired.