Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. system.drawing

system.drawing

Scheduled Pinned Locked Moved Visual Basic
graphicshelp
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zealot345
    wrote on last edited by
    #1

    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. ;)

    C 1 Reply Last reply
    0
    • Z Zealot345

      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. ;)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      L 1 Reply Last reply
      0
      • C Christian Graus

        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++

        L Offline
        L Offline
        lupa nikki
        wrote on last edited by
        #3

        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:

        C 1 Reply Last reply
        0
        • L lupa nikki

          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:

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          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++

          L 1 Reply Last reply
          0
          • C Christian Graus

            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++

            L Offline
            L Offline
            lupa nikki
            wrote on last edited by
            #5

            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

            G F 2 Replies Last reply
            0
            • L lupa nikki

              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

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              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; }

              1 Reply Last reply
              0
              • L lupa nikki

                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

                F Offline
                F Offline
                FrankyT
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups