Solved

listbox delete selected item help

Posted on 2001-08-28
3
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 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