Make a combo box not editable

Posted on 2005-04-06
Last Modified: 2013-11-20
I have a combo box created with VS.NET 2003 and in the properties I can't seem to see an option as to how to make it not editable.  Right now users can change the text in the combo box like they would a text box.  I want static options in the combo box.

Question by:ptrennum
    LVL 3

    Expert Comment

    Set the property of the the ComboBox to use DropList not DropDown.
    LVL 3

    Accepted Solution

    What I meant is that set the Type value of the ComboBox Property to say DropList, not Dropdown or Simple. DropList will prevent the items to be editable.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 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

    19 Experts available now in Live!

    Get 1:1 Help Now