Solved

Remove an item from a listbox

Posted on 2013-11-22
2
310 Views
Last Modified: 2013-11-22
What is the syntax for removing a selected listbox item?

This is not correct.
lstFilesSent.SelectedItem.Remove();

Thanks,
0
Comment
Question by:Dovberman
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 300 total points
ID: 39669210
lstFilesSent.Items.Remove(lstFilesSent.SelectedItem);
0
 

Author Closing Comment

by:Dovberman
ID: 39669255
Perfect.  Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now