How to get rid of name default display in listbox

Posted on 2006-04-12
Last Modified: 2010-05-01
I have a listbox named lstShipMethod.  The list box name is displayed in the
list box when I run the VB 6.0 application.  What property do I have to set to get
rid of the name lstShipMethod being displayed in the list box? What do I need
to set the property to.

Question by:swansonplace
    LVL 52

    Expert Comment

    by:Carl Tawn
    That sounds a little odd. The name will appear in the list in "Design" mode, but shouldn't appear at runtime unless it has been added intentionally.
    LVL 4

    Accepted Solution

    i agree this shouldn't be happening, but in design mode you can click on the ... where you can manually build the list, then delete it.  that will make it disappear in design mode, too and should also when running the app.

    Author Comment

    Thanks that worked.
    LVL 4

    Expert Comment


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    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…
    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.
    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…
    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…

    755 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

    21 Experts available now in Live!

    Get 1:1 Help Now