private void pictureBox1_Paint_1(object sender, PaintEventArgs e)
{
Pen graphPen = new Pen(Color.Red, 2);
Point pt1D = new Point();
Point pt2D = new Point();
pt1D.X = textBox3.Text.ToString();
e.Graphics.DrawLine(graphPen, pt1D, pt2D);
}
I'm getting error on 6th line as: cannot convert type string to int.