Can’t use System.Windows.Forms

A console application does not automatically add a reference to System.Windows.Forms.dll.

Right-click your project in Solution Explorer and select Add reference… and then find System.Windows.Forms and add it.

Leave a Comment