Combo Box in VB.NET

Posted on 2004-11-12
Last Modified: 2010-04-17
How do you make a combo box in VB.NET to work while not allowing changes to the text?  When I set to enabled = false, of course, it doesn't work.  Which parameter allows the user to select and disallow the text to be chaned?
Question by:ddepuemd
    LVL 7

    Accepted Solution

      You can use:

      ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList

      This way you can select item and cannot change text by typing.
    LVL 7

    Expert Comment

      I think you should check the guideline for grading an answer:
      The question is easy don't mean the one who answer only get B or C grade.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
    This article will show, step by step, how to integrate R code into a R Sweave document
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    760 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

    6 Experts available now in Live!

    Get 1:1 Help Now