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
Lucky Lam
NA
13
4.1k
Wondering using listbox c#
Oct 9 2013 9:27 PM
I have looking for error on these code all day, but I really don't understand why it didn't work
private void button2_Click(object sender, EventArgs e)
{
int numberItems = listBoxMenu.Items.Count;
for(int i=0;i<numberItems;i++)
{
if (listBoxMenu.GetSelected(i))
{
listBoxChosen.Items.Add(listBoxMenu.Items[i]);
listBoxMenu.Items.RemoveAt(i);
}
}
}
These code above try to insert selected item from lisboxMenu to listBoxChosen...
I appreciate for your help
Reply
Answers (
4
)
printing data
windows application