Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Find and show an item in listbox
Amin Bhr
Feb 23 2017 9:48 AM
220
Reply
hi all
question 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 search
but working for add a name with last name and phone number in 1 item in the list
Attachment:
WindowsFormsApplication5.zip
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
panel moving in windows form
export data datagridview to pdf file using c# .net