Why, after compiling the project and then launching, I get the error:

"Could not find the file or assembly name" System.Windows.Forms, Version=2.0.0.0, Capture=neutral, PublicKeyToken=B77A5C56193E089 "or one of their dependencies."

    1 answer 1

    Check whether or not the System.Windows.Forms assembly is connected to the project: for this, expand the References element in the project. If it is not there, right click -> Add Reference , and there in the dialog select the desired assembly.