go to the side project panel, right click on references -> add reference and find System.Windows.Forms
Any time some error like this occurs (some namespace you added is missing that is obviously there) the solution is probably this - adding a reference.
This is needed because your default project does not include everything because you probably wont need it so it saves space. A good practice is to exclude things you're not using.