Results 1 to 5 of 5

Thread: How to create line , bars graphics using Visual Basic???

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Posts
    1

    Question

    Hello Visual Basic Developers,

    I would like to know how to create graphics (line and bar), with Visual Basic. I want to avoid the Microsoft Excell to do it.

    Does exist some control or tool kit to create them???

    Somebody , please... help me...

    Please send your aswers to [email protected]

    Thanks to all
    Alessandro Chiodo
    [email protected]

  2. #2
    Guest
    Use the Line method:
    Code:
    Me.DrawWidth = 5
    Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight)

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Or use the MS Chart control to add charts to your forms.
    Harry.

    "From one thing, know ten thousand things."

  4. #4
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553

    Exclamation

    For a bar graph, don't forget the "BF"

    Box Filled
    Use the Form's FillColor and FillStyle properties to accomplish this.

    Code:
    Me.Line (x1,y1)-(x2,y2),&H0&,BF

  5. #5
    New Member
    Join Date
    Aug 2000
    Location
    Vancouver BC
    Posts
    4
    Check out
    http://vbsquare.com/articles/graph/
    for an example of how to create your own graph control.
    "I have a plan so cunning you could pin a tail on it and call it a weasel!" - Edmund Blackadder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width