Csharp komutları

 avatar
unknown
csharp
a year ago
685 B
1
Indexable
listBox1.Items.Add("Selam");
listBox1.Items.Clear();
textBox1.Text = listBox1.Items.Count.ToString();
textBox1.Text = listBox1.Items.IndexOf("Bucak").ToString();
listBox1.Items.Insert(3, textBox1.Text);
listBox1.Items.Remove("Isparta");
listBox1.Items.RemoveAt(2);
listBox2.Items.AddRange(listBox1.Items);
textBox1.Text = listBox1.SelectedItem.ToString();
textBox2.Text = listBox1.SelectedIndex.ToString();
textBox1.Text = listBox1.Items[2].ToString();
textBox1.Text = listBox1.SelectedItems[2].ToString();
listBox1.SetSelected(1, true);
listBox1.ClearSelected();
listBox1.Sorted = true;
int index = listBox1.FindString(textBox1.Text);
textBox2.Text = index.ToString();
Leave a Comment