E
EL Mou
Guest
Hello
i have this code :
button1.Visible = false;
button2.Visible = false;
button3.Visible = false;
button4.Visible = false;
button5.Visible = false;
button6.Visible = false;
button7.Visible = false;
button8.Visible = false;
button9.Visible = false;
textBox1.Visible = true;
textBox2.Visible = true;
textBox3.Visible = true;
textBox4.Visible = true;
textBox5.Visible = true;
textBox6.Visible = true;
textBox7.Visible = true;
textBox8.Visible = true;
textBox9.Visible = true;
and it seems too long, So how i can use loop for{} to decreases the code ?
i tried with
for (int i =1; i<=9; i++)
{
button(i).Visible = false;
textbow[ì].visibe = true;
}
and its doesnt work !
can you help ?
and thanks
Continue reading...
i have this code :
button1.Visible = false;
button2.Visible = false;
button3.Visible = false;
button4.Visible = false;
button5.Visible = false;
button6.Visible = false;
button7.Visible = false;
button8.Visible = false;
button9.Visible = false;
textBox1.Visible = true;
textBox2.Visible = true;
textBox3.Visible = true;
textBox4.Visible = true;
textBox5.Visible = true;
textBox6.Visible = true;
textBox7.Visible = true;
textBox8.Visible = true;
textBox9.Visible = true;
and it seems too long, So how i can use loop for{} to decreases the code ?
i tried with
for (int i =1; i<=9; i++)
{
button(i).Visible = false;
textbow[ì].visibe = true;
}
and its doesnt work !
can you help ?
and thanks
Continue reading...