hi allquestion is i want to user put name of the item in serch textbox and then click on search button and when that item finded show tell number of that name in an other textbox here is my code
- private void btAdd_Click(object sender, EventArgs e)
- {
- tbTell.Text = tbTell.Text.ToString();
-
- tbName.Text += " | " + tbFamily.Text;
- listnames.Items.Add(tbName.Text+" | "+tbTell.Text);
- string number = tbTell.Text;
- tbName.Text = "";
- tbName.Focus();
- }
- private void btnSerch_Click(object sender, EventArgs e)
- {
-
- listnames.FindString(tbSerch.Text);
-
-
- }
but this code is not working for searchbut working for add a name with last name and phone number in 1 item in the list