Drawing Tools In Vb 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Roldan
    New Member
    • Mar 2007
    • 7

    #1

    Drawing Tools In Vb 2005

    Hi!

    I've got a question,

    In VB6 there are drawing tools available, circle, line, ellipse etcetera that one can use to draw while designing a program....
    ....in vb 2005 although I am able to see these drawing tools, they're always unavailable, all the time!

    Do I need to do something, add a container or something to activate them?

    Please help!!!!

    Thank you very much!!!

    Roldan
  • JonJacobs
    New Member
    • Aug 2007
    • 22

    #2
    If I understand your situation...

    Imports System.Drawing

    etc.

    If that is not sufficient, you might need to do Add Reference.

    HTH

    Comment

    • Roldan
      New Member
      • Mar 2007
      • 7

      #3
      Uhmm...what I meant is, the drawing tools that in VB6 can be used just like any other object in the toolbox (in fact, in VB6 the circle, square and line items) can be found in the toolbox. So anyway, these drawing items's properties can be modified just like a label, textbox or any other item can while in designing mode or at runtime.

      But anyway, I did some more research and it seems as if this feature is no longer available in VB 2005, so now the drawing tools can only be used while editing a Bitmap component (Project...Add Componet...Bitm ap File) This sucks, but that's the way it is so......unless this info is wrong in which case I would greatly appreciate somebody showing me how to accomplish this simple task (without actually importing a picture of a circle, square, etc) into a picturebox though!

      Thansk,

      Roldan

      Comment

      • Benzerari
        New Member
        • Aug 2007
        • 9

        #4
        I have been stuck with same problem in my application, and I am waiting for any bit of light

        Comment

        • JonJacobs
          New Member
          • Aug 2007
          • 22

          #5
          Amendment:
          Imports System.Drawing. Graphics

          then you can use:
          DrawEllipse

          Pass it a pen and a bounding rectangle. If the bounding rectangle is a square, then your ellipse is a circle.

          Comment

          Working...