|
-
Dec 4th, 2009, 03:53 AM
#1
Thread Starter
Junior Member
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
-
Dec 4th, 2009, 04:01 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|