Adding a reference to UI assembly
I have added many "using" statements to Additional Namespace Imports such as
System
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Drawing.Drawing2D
System.Text
System.Windows.Forms
System.Windows.Forms.VisualStyles
But when I reference it I still show an error that the symbol is undefined (CS0234). For example
public class Form1 : System.Windows.Forms.Form
Hovering over "Form" that shows red gives me this error.
Ideas?
Thank you.
System
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Drawing.Drawing2D
System.Text
System.Windows.Forms
System.Windows.Forms.VisualStyles
But when I reference it I still show an error that the symbol is undefined (CS0234). For example
public class Form1 : System.Windows.Forms.Form
Hovering over "Form" that shows red gives me this error.
Ideas?
Thank you.
Comments
Press F4, add reference, choose System.Windows.Forms.
If you have a paid edition, you don't need to explicitly add this reference - nor the namespaces above. Just click the smart tag that appears next to "Form", then choose the option to add the reference and namespace automatically.