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
Kevin Brigitta
NA
43
49.7k
Adding counted items to a listbox from another listbox
Jun 18 2011 7:39 AM
Hi,
- I have a listbox, called "lbox_Products".
- Next to this box, I have a button "btn_AddProduct".
- I have another listbox, called "lbox_SelectedProducts"
When I select an item in my lbox_Products, and I click on the btn_AddProduct, the selected item from the first lbox_Products, is put in the other lbox_SelectedProducts.
This happens like this:
private void btn_AddProduct_Click(object sender, RoutedEventArgs e)
{
lbox_SelectedProducts.Items.Add(lbox_Products.SelectedItem);
}
This works fine, but what I want to do, is have a single line for each product in lbox_SelectedProducts, preceeded by the number of times that it has been added.
For example:
1 phone
3 displays
6 computers
2 speakersets
...
How can I do this...?
Reply
Answers (
9
)
How to implement Nhibernate mapping using vb.net?
clear the datagridview