Since AdvancedHMI is an open source project that uses it's own components, Visual Studio can get problematic from time to time. When it does, the best solution is to fully clean you AdvancedHMI project.
- Open your AdvancedHMI project in Visual Studio
- Window->Close All Documents
- File->Save All
- Exit Visual Studio
- Using Windows Explorer, go to the folder with your AdvancedHMI project
- Delete the 6 following folders:
\AdvancedHMI\bin
\AdvancedHMI\obj
\AdvancedHMIControls\bin
\AdvancedHMIControls\obj
\AdvancedHMIDrivers\bin
\AdvancedHMIDrivers\obj
- If your PC is setup to show hidden files, also delete AdvancedHMI.sou
- Re-Open your project in Visual Studio
- Build->Clean Solution
- Build->Rebuild Solution
- Open MainForm from Solution Explorer