system.drawing
-
I'm not too sure about what to do when my project doesn't recognize 'system.drawing' eg: " 'Drawing' is not a member of System.Windows.Forms.Label " There might be an easy solution, but if someone could help it'd be great. Thanks. ;)
Zealot345 wrote:
eg: " 'Drawing' is not a member of System.Windows.Forms.Label "
Well, this is actually true. If you do label1.Drawing, it won't work, and will generate this sort of error. Christian Graus - Microsoft MVP - C++
-
Zealot345 wrote:
eg: " 'Drawing' is not a member of System.Windows.Forms.Label "
Well, this is actually true. If you do label1.Drawing, it won't work, and will generate this sort of error. Christian Graus - Microsoft MVP - C++
I was the one who actually had the problem, i just posted under another name. the code line is: "Me.BackColor = System.Drawing.Color.SteelBlue " (squigly blue line unser system.drawing) Im not sure how to fix it so that my project knows what System.drawing is. As i obviously can't run the project with it. :confused:
-
I was the one who actually had the problem, i just posted under another name. the code line is: "Me.BackColor = System.Drawing.Color.SteelBlue " (squigly blue line unser system.drawing) Im not sure how to fix it so that my project knows what System.drawing is. As i obviously can't run the project with it. :confused:
System.Drawing is a dll that gets referenced in your project. If you go add/reference/system.drawing, what happens ? Is it in the references list already ? Christian Graus - Microsoft MVP - C++
-
System.Drawing is a dll that gets referenced in your project. If you go add/reference/system.drawing, what happens ? Is it in the references list already ? Christian Graus - Microsoft MVP - C++
When i go to add/reference/system.drawing it's in the reference list list already, but the copy local is false - is that alright? :confused: I also have a Form1.Designer.vb page which my lecturer has never seen before. Which is also where the errors in code is. Is this effecting the project in anyway? -- modified at 0:50 Monday 3rd April, 2006
-
When i go to add/reference/system.drawing it's in the reference list list already, but the copy local is false - is that alright? :confused: I also have a Form1.Designer.vb page which my lecturer has never seen before. Which is also where the errors in code is. Is this effecting the project in anyway? -- modified at 0:50 Monday 3rd April, 2006
lupa-nikki wrote:
but the copy local is false - is that alright?
Yes. As the dll is part of the framework you don't want it to be copied to your bin folder when building the project. You have to import the namespace System.Drawing in the page where you want to use it. --- b { font-weight: normal; }
-
When i go to add/reference/system.drawing it's in the reference list list already, but the copy local is false - is that alright? :confused: I also have a Form1.Designer.vb page which my lecturer has never seen before. Which is also where the errors in code is. Is this effecting the project in anyway? -- modified at 0:50 Monday 3rd April, 2006
Form.Desiginer.vb files are new to net 2.0 (VS 2005) they contain the auto generated code caused by draging things onto the designer and manipulating their properties. it's the equivilant to to the "Windows Generated Code" region of a VS 2002 or 2003 Form. Typically only changes made to the designer get written to this file. you may have botched a property. try importing the lib desire. copy local = false is fine for system namespaces, since they are part of the core framework (%windir%\Microsoft .Net\Framework\-VerNum-\). you only need copy local when your referencing a custom or third-party lib. Good luck hey...slang is the vernacular for the vernacular...wow