Solved

combobox drop disable text input

Posted on 2000-03-09
4
654 Views
Last Modified: 2008-02-01
Experts,

How can the text box of a combo box be disabled so a user can't type in information, but still have the user be able to access the drop down list.....combobox.enable, and combobox.lock lock off both the text and drop down menu....? Thanks
0
Comment
Question by:vbdvlper
  • 2
4 Comments
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 2601054
set the style property to "2 - Dropdown List"
0
 

Author Comment

by:vbdvlper
ID: 2601103
Thanks,

Trying to be able to set the text property, just not have the user be able to set the text property?  with drop down list, the text property becomes invalid?

Is there a way to set the style property to 2 and still be able to set the combo box text property?
0
 

Author Comment

by:vbdvlper
ID: 2601155
Is there a way to disable the textbox part of the combo box from a user, but still be able to set the text property and the user to use the drop down?  Maybe this is difficult?
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 20 total points
ID: 2601225
Disable user input:

Private Sub Combo1_KeyPress(KeyAscii As Integer)
    KeyAscii = 0
End Sub
0

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

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 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

18 Experts available now in Live!

Get 1:1 Help Now