isim ve yaşı iki boyutlu diziye aktarma
unknown
csharp
2 years ago
431 B
13
Indexable
TimeSpan yas = new TimeSpan();
yas = DateTime.Now - dateTimePicker1.Value;
int yas2 = yas.Days / 365;
listBox1.Items.Add(textBox1.Text);
listBox2.Items.Add(yas2);
string[,] dizi = new string[listBox1.Items.Count,2];
for(int i = 0; i < listBox1.Items.Count; i++)
{
dizi[i, 0] = listBox1.Items[i].ToString();
dizi[i, 1] = listBox2.Items[i].ToString();
comboBox1.Items.Add(dizi[i, 0] + " " + dizi[i, 1]);
}Editor is loading...
Leave a Comment