Presentation is loading. Please wait.

Presentation is loading. Please wait.

MTM216 GÖRSEL PROGRAMLAMA

Similar presentations


Presentation on theme: "MTM216 GÖRSEL PROGRAMLAMA"— Presentation transcript:

1 MTM216 GÖRSEL PROGRAMLAMA
Temel Komutlar

2 decimal veri; veri = Convert.ToDecimal(textBox1.Text); label1.Text = "Sonuc = " + veri.ToString(); string s; s = textBox1.Text; label1.Text = s; label2.Text = "Karabük Üniversitesi"; Birinci Yöntem textBox1.Text = ""; İkinci Yöntem textBox1.Text = null;

3 DateTime tarih_deger; tarih_deger = Convert.ToDateTime(tarih);
Birinci Yöntem string tarih; tarih = textBox1.Text; DateTime tarih_deger; tarih_deger = Convert.ToDateTime(tarih); label2.Text = tarih_deger.ToString(); İkinci Yöntem string tarih; tarih = textBox1.Text; DateTime tarih_deger; tarih_deger = DateTime.Parse(tarih); label2.Text = tarih_deger.ToString(); Birinci Yöntem Form2 Yeni = new Form2(); Yeni.Show(); İkinci Yöntem Form3 Yeni = new Form3(); Yeni.ShowDialog();

4 int sayi_1=Convert.ToInt16(textBox1.Text);
int toplam=sayi_1+sayi_2; textBox3.Text = toplam.ToString(); int sayi; label2.Text = ""; sayi = Convert.ToInt32(textBox1.Text); if (sayi >= 100) { return;//olmasada olur } else label2.Text = sayi.ToString(); decimal sayı; sayı = Convert.ToDecimal(textBox1.Text); string sonuc; sonuc = sayı.ToString("#,###.00 TL"); textBox2.Text = sonuc;


Download ppt "MTM216 GÖRSEL PROGRAMLAMA"

Similar presentations


Ads by Google