I’m new to Microsoft Visual C#, so I hope my following question is not sound stupid. I have removed a button from my form. However, it’s still showing when I running the ‘Start Debugging’ (F5) in microsoft visual c# 2010 (see attach pictures for more details). does anyone know what is going there? and how can I solve this issue?


It sounds like the option to continue to run when a build failure occurs is enabled.
Check setting
"On Run, when build or deployment errors occur"under"Tools -> Options -> Projects and Solutions -> Build And Run".If it is set to
"Launch old version", change it to"Prompt to launch". You will then be notified of the build error, which will allow you to correct the issue before running.