TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amin Bhr
NA
2
588
Find and show an item in listbox
Feb 23 2017 9:48 AM
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
Reply
Answers (
1
)
panel moving in windows form
export data datagridview to pdf file using c# .net