Search code examples
c#formsvisual-studiocompiler-errors

Why my Visual Studio 2019 still compiling the last program without changes?


I had created a new project in C # Visual Studio, and when compiling it, the project is showing me the last compiled project. I try to change the form visual and compile again but doesn't work, still showing me the last form visual compiled.

Does anyone already have this problem?

Compiled program: program compiled

Changed I had created to compiled again: changed program

But, when I compile, still showing me the program without changes.


Solution

  • I solved that!

    Idk why, but the instance of the new form in this solution has lost its configuration of the form.

    The solution to that is:

    • change the name form;
    • create a new instance:
    • ~(example) FormScan frmScan = new FormScan();
    • reload everything and compile;