my problem is that a is never assigned to,and will have its default value 0
public partial class Form1 : Form
{
int a, b, c, d, thickness;
private void textBox1_TextChanged(object sender, EventArgs e)
{
a = Convert.ToInt16(textBox1.Text);
}
private void button1_Click_1(object sender, EventArgs e)
{
Pen blackpen = new Pen(colorDialog1.Color);
blackpen.Width = thick;
drawline1.DrawLine(blackpen, a);
}
the program run but not working its like that dosnt get numbers i gave it to it it works like this tho
{
a = Convert.ToInt16(textBox1.Text);
drawline1.DrawLine(blackpen, a;
}