Solved

Remove an item from a listbox

Posted on 2013-11-22
2
312 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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