Konu
c# da butona basıldığında rastgele isim üretmek nasil oluyor
14-02-2021, 17:18:46
#2
baskiworld
int isim =
listBox1
.Items.Count;
Random rnd = new Random();
int
random
= rnd.Next(0,
isim
);
listBox1
.SelectedIndex = random;
Kullanımı : textBox1.Text = listBox1.SelectedItem.ToString();