title: How can i make a point in a chart equal the value of a textbox?
body: <p>In my project I have created a chart and I want there to be the same number of points as in my textboxes, how can i do that? this is my code </p>
  
  <pre><code> Public Class Form1
        Dim a As Object
        Dim b As Object
  
  Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
      Chart1.Anchor = AnchorStyles.Bottom Or AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Top
      Chart1.ChartAreas(0).AxisX.Maximum = 20
      Chart1.ChartAreas(0).AxisY.Maximum = 30
      Chart1.ChartAreas(0).AxisX.Minimum = -20
      Chart1.ChartAreas(0).AxisY.Minimum = -30
      Chart1.ChartAreas(0).AxisY.Interval = 5
      Chart1.ChartAreas(0).AxisX.Interval = 5
      Chart1.ChartAreas(0).AxisX.Crossing = 0
      Chart1.ChartAreas(0).AxisY.Crossing = 0
      Chart1.ChartAreas(0).AxisX.LineWidth = 2
      Chart1.ChartAreas(0).AxisY.LineWidth = 2
      Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.Black
  
      a = New DataPoint(0, 0)
      a.Label = "#VALX : #VALY"
      a.MarkerStyle = MarkerStyle.Circle
      a.MarkerSize = 5
      Chart1.Series(0).Points.Add(a)
  End Sub
  </code></pre>
  
  <p>And I want the datapoints to be like </p>
  
  <pre><code> a =(val(textbox1.text),val(textbox2.text))
  </code></pre>