Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with comboboxes; how to make them not editable 1

Status
Not open for further replies.

JB83

Programmer
Oct 3, 2002
44
NL
Dear reader(s),

I have generally a problem with comboboxes: the comboboxes must be non-editable, but there has to be a possibility to select a value and add it into the database. I have already searched for special variables which might could do this, but nothing found. Is there a solution for this problem or can't this be done?

Thanks in advance,

Jochen. --------------------------------------------------------------------------------
It never hurts to help and it never helps to hurt.
 
Setting the combo's LimitToList property to Yes means that only those values in the drop-down list can be selected. Is this what you want?

There are other properties like Locked and Enabled that you can play with but these will prohibit you from selecting or changing values which, if I understand you correctly, is not what you want.

HTH [pc2]
 
Mp9,

thank you for your fast respond! It is not exactly what I wanted, but it is the best property for locking the combobox. This is not your fault of not understanding me correctly (which you did) , but the limit of property adjustments in VB itself.

I actually would like that the combobox doesn't show a (blinking) cursor at all, it only has to show the values which are in the combobox. The NotInList property is not exactly what I wanted, but it reaches almost. If it's not possible what I want: too bad.

Thanks anyway!

[2thumbsup]

Jochen. --------------------------------------------------------------------------------
It never hurts to help and it never helps to hurt.
 
I'll try that later, thanks for your respond!

Jochen. --------------------------------------------------------------------------------
It never hurts to help and it never helps to hurt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top