Article ID: 177997
Article Last Modified on 7/13/2004
Option Explicit
Private Sub Form_Load()
MSChart1.ColumnCount = 1
Label1.Caption = "Red Value:"
Label2.Caption = "Green Value:"
Label3.Caption = "Blue Value:"
Text1.Text = "0"
Text2.Text = "0"
Text3.Text = "0"
Command1.Caption = "Change Bar Color"
Command1_Click
End Sub
Private Sub Command1_Click()
'This event changes the bar colors of the graph.
With MSChart1.Plot.SeriesCollection(1).DataPoints(-1)
.Brush.Style = VtBrushStyleSolid
.Brush.FillColor.Red = CInt(Text1.Text)
.Brush.FillColor.Green = CInt(Text2.Text)
.Brush.FillColor.Blue = CInt(Text3.Text)
End With
End Sub
175212 SAMPLE: CHRTSAMP.EXE Visual Basic 5.0 MSChart Sample
275649 SAMPLE: ChrtSmpl.exe Demonstrates Use of the Visual Basic 6.0 MSChart Control
Additional query words: MSChart charting graph graphing series kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbControl
Keywords: kbhowto kbgrpdsvb KB177997