Solved

combobox drop disable text input

Posted on 2000-03-09
4
663 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

734 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