Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Find and show an item in listbox
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Amin Bhr
7y
232
1
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
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
panel moving in windows form
export data datagridview to pdf file using c# .net