private void button1_Click(object sender, EventArgs e)
{
n = Convert.ToInt32(textBox1.Text);
for (; i < n; i = i + 2)
{
textBox2.Text = textBox2.Text + " " + Convert.ToString(i); ;
}
}
I an mentioning that i,n=0; is located in the declarations zone of InitializeComponent();
I get the error : FormatExeption was unhandled.Make sure your methog arguments are in the right format.