c# soru

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
16 Şub 2019
Mesajlar
112
Tepki puanı
11
Ödüller
3
Yaş
25
7 HİZMET YILI

Post automatically merged:

Kodaları nedır?
 
Uzman Üye
Katılım
17 Ağu 2016
Mesajlar
237
Tepki puanı
217
Ödüller
9
9 HİZMET YILI
form'a 1 textbox ve 4 button ekledikten sonra bu kodu kullanabilirsin.

int say;
private void button1_Click(object sender, EventArgs e)
{
say = Convert.ToInt32(textBox1.Text);
say++;
textBox1.Text = Convert.ToString(say);
}

private void button2_Click(object sender, EventArgs e)
{
say = Convert.ToInt32(textBox1.Text);
say--;
textBox1.Text = Convert.ToString(say);
}

private void button3_Click(object sender, EventArgs e)
{
say = Convert.ToInt32(textBox1.Text);
say+=5;
textBox1.Text = Convert.ToString(say);
}

private void button4_Click(object sender, EventArgs e)
{
say = Convert.ToInt32(textBox1.Text);
say-=5;
textBox1.Text = Convert.ToString(say);
}
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...