Your problem is clearly explained in the message:
'_adapter' is already declared as 'Private WithEvents _adapter As System.Data.SqlClient.SqlDataAdapter' in this class.
What does it mean?
It means that in the class, you (or the Visual Studio designer, for auto-generated files) have declared two variables with the same name ('_adapter' in this case).
Solution:
- Open the
{ClassName}.Designer.cs file.
- Search for every
duplicate variable declaration (variable names should be highlighted in the designer; the only thing you have to do is watching for those who cause problems).
- Every variable should have
one, and only one, declaration.
- Check in every file of the project that it has its namespace declaration updated.