-
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
-
Use the Line method:
Code:
Me.DrawWidth = 5
Line (0, 0)-(Me.ScaleWidth, Me.ScaleHeight)
-
Or use the MS Chart control to add charts to your forms.
-
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
-
Check out
http://vbsquare.com/articles/graph/
for an example of how to create your own graph control.