So I am working on a program for school and came across this problem. My Visual Studio is running code that I have deleted from the program but not the code that is there now. I could really use a hand with this.
Check to see which project is currently active, I know I had the same problem a few times. Make sure that the code you want to run is the code in the active project.