I’m creating a label within a class and I’m getting an error when i try to do the following code below where its bold. The error I’m getting is that
Drawingis not declared. It may be due to its protection level.
I’m thinking that I have to import a namespace, but I’m not sure exactly which one contains Drawing. I have researched this and have been unsuccessful. Any help would be very much appreciated.
Label1.ForeColor = Drawing.Color.Red
Coloris actuallySystem.Drawing.Color.You can fully qualify it:
Alternatively, you can use
Imports System.Drawingat the top of your file: