private void detail_Format(object sender, EventArgs e) { if(checkBoxSales.Checked) { this.chartControl1.Series["Sales"].Points[0].LegendText = "; } else { this.chartControl1.Series["Sales"].Points[0].LegendText = "Twenty"; } }
Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format If (CheckBoxSales.Checked) Then Me.ChartControl1.Series("Sales").Points(0).LegendText = " Else Me.ChartControl1.Series("Sales").Points(0).LegendText = "Twenty" End If End Sub