How to make a simple bar graph in VB2005?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snb
    New Member
    • Mar 2008
    • 1

    #1

    How to make a simple bar graph in VB2005?

    I want to make a bar graph in VB2005.

    I made it in VB6.0 by picture1.line (x1,y1)-(x2,y2) in side a picture box. But in VB2005, it's showing an error that "Line" is not a member of "picture1".

    Then how to make a bar graph in VB2005.

    Somnath
    <email removed>
    Last edited by epots9; Mar 7 '08, 01:41 PM. Reason: email removed, read posting guidelines
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Moved to the .NET Forums where the resident experts can better assist you.

    **Moved from Programming Challenges.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      You will need a Graphics object for the given picturebox control.
      How you obtain it depends on what you plan to do.

      But the Graphics object contains all your methods for drawing a line and such.

      Comment

      Working...