using System; using System.Windows.Forms; namespace zenci { public partial class Form1 : Form { public Form1() { InitializeComponent(); comboBox1.SelectedIndex = 0; } private void button1_Click(object sender, EventArgs e) { char secilenHarf = Convert.ToChar(comboBox1.SelectedItem); int sira = 0; string sesliVeyaSessiz = ""; switch (secilenHarf) { case 'A': sira = 1; sesliVeyaSessiz = "Sesli"; break; case 'B': sira = 2; sesliVeyaSessiz = "Sessiz"; break; case 'C': sira = 3; sesliVeyaSessiz = "Sessiz"; break; case 'D': sira = 4; sesliVeyaSessiz = "Sessiz"; break; case 'E': sira = 5; sesliVeyaSessiz = "Sesli"; break; case 'F': sira = 6; sesliVeyaSessiz = "Sessiz"; break; case 'G': sira = 7; sesliVeyaSessiz = "Sessiz"; break; case 'H': sira = 8; sesliVeyaSessiz = "Sessiz"; break; case 'I': sira = 9; sesliVeyaSessiz = "Sesli"; break; case 'J': sira = 10; sesliVeyaSessiz = "Sessiz"; break; case 'K': sira = 11; sesliVeyaSessiz = "Sessiz"; break; case 'L': sira = 12; sesliVeyaSessiz = "Sessiz"; break; case 'M': sira = 13; sesliVeyaSessiz = "Sessiz"; break; case 'N': sira = 14; sesliVeyaSessiz = "Sessiz"; break; case 'O': sira = 15; sesliVeyaSessiz = "Sesli"; break; case 'P': sira = 16; sesliVeyaSessiz = "Sessiz"; break; case 'Q': sira = 17; sesliVeyaSessiz = "Sessiz"; break; case 'R': sira = 18; sesliVeyaSessiz = "Sessiz"; break; case 'S': sira = 19; sesliVeyaSessiz = "Sessiz"; break; case 'T': sira = 20; sesliVeyaSessiz = "Sessiz"; break; case 'U': sira = 21; sesliVeyaSessiz = "Sesli"; break; case 'V': sira = 22; sesliVeyaSessiz = "Sessiz"; break; case 'W': sira = 23; sesliVeyaSessiz = "Sessiz"; break; case 'X': sira = 24; sesliVeyaSessiz = "Sessiz"; break; case 'Y': sira = 25; sesliVeyaSessiz = "Sessiz"; break; case 'Z': sira = 26; sesliVeyaSessiz = "Sessiz"; break; default: MessageBox.Show("Türk harfi."); return; } MessageBox.Show($"{secilenHarf} harfi, alfabede {sira}. sıradadır ve bu harf {sesliVeyaSessiz} harftir."); } private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { int gun = Convert.ToInt32(DateTime.Now.DayOfWeek); switch (gun) { case 1: case 2: case 3: case 4: case 5: MessageBox.Show("hafta içi"); break; case 6: case 0: MessageBox.Show("hafta sonu"); break; default: MessageBox.Show("error"); break; } } } }