listBox コントロールでの項目の検索
private void button1_Click(object sender, System.EventArgs e)
{
listBox1.Items.Add("One");
listBox1.Items.Add("Two");
listBox1.Items.Add("Three");
if (listBox1.FindString("Two") != -1)
MessageBox.Show("Found it!");
}
private void button1_Click(object sender, System.EventArgs e)
{
listBox1.Items.Add("One");
listBox1.Items.Add("Two");
listBox1.Items.Add("Three");
if (listBox1.FindString("Two") != -1)
MessageBox.Show("Found it!");
}