Results 1 to 2 of 2

Thread: Combobox. Do not allow values that are not in the list

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2009
    Posts
    27

    Combobox. Do not allow values that are not in the list

    Hi,

    I was useing VB a lot for some years ago and now I have started again..

    then, think I was useing VB3 or VB4 there was a property on ComboBox and listboxes that allows only to select the values in the Combox.. Not able to write own values..

    Can't find this now..

    ?

    Thanks

    Stefan

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Combobox. Do not allow values that are not in the list

    VB.NET is essentially a different language to VB6, just with similar syntax. Assume that anything you previously knew no longer holds and consider it a bonus when things turn out to be the same. As such, if you want to know how a ComboBox works then you should not assume anything and just read the documentation for the ComboBox class.
    The default behavior of ComboBox displays an edit field with a hidden drop-down list. The DropDownStyle property determines the style of combo box to display. You can enter a value that provides a simple drop-down, where the list always displays, a drop-down list box, where the text portion is not editable and you must select an arrow to view the drop-down list box, or the default drop-down list box, where the text portion is editable and the user must press the arrow key to view the list.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width