devlev
03/05/2008, 21:01
int top=0;
if (radioButton1->Checked)
top+=5;
else if(radioButton2->Checked)
top+=10;
else if(radioButton3->Checked)
top+=25;
else if(radioButton4->Checked)
top+=50;
else if(radioButton2->Checked)
top+=100;
mesela radyobuton1 e tklayınca textboxda 5 değerini sonra radyo buton2 ye tıklandığında 10 arttırmasını istiyorum. bunu nasl döngü haline sokabilirim. yada recursive fnction falanmı kullanamk gerek
if (radioButton1->Checked)
top+=5;
else if(radioButton2->Checked)
top+=10;
else if(radioButton3->Checked)
top+=25;
else if(radioButton4->Checked)
top+=50;
else if(radioButton2->Checked)
top+=100;
mesela radyobuton1 e tklayınca textboxda 5 değerini sonra radyo buton2 ye tıklandığında 10 arttırmasını istiyorum. bunu nasl döngü haline sokabilirim. yada recursive fnction falanmı kullanamk gerek