Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

listbox delete selected item help

Posted on 2001-08-28
3
Medium Priority
?
186 Views
Last Modified: 2011-10-03
i have a listbox called "lstCities" and when i select a city and click on cmdDelete, it deletes that selected item.


Can someone post the simplest code to do this  A.S.A.P



cheers
0
Comment
Question by:penfold69
  • 2
3 Comments
 
LVL 1

Expert Comment

by:DonBartholomew
ID: 6431469
Ok, it's just this:

Listbox.RemoveItem(Listbox.ListIndex)

Don
0
 
LVL 1

Accepted Solution

by:
DonBartholomew earned 400 total points
ID: 6431475
Ok, it's just this:

Listbox.RemoveItem(Listbox.ListIndex)

Don
0
 
LVL 12

Expert Comment

by:roverm
ID: 6431558
penfold69:
duplicate question!
please remove this one!

experts:
please continue at:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20174922
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

916 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