|
-
Nov 12th, 2003, 07:44 AM
#1
Thread Starter
Addicted Member
C#: ReadOnly Combo Box
Hi,
I want to use a combo box that has the ability to use the drop down but not accept keystrokes. There is no "readonly" property like there is on a text box - does anybody have any ideas how I might achieve this? Ideally I don't want to use API calls.
Thanks in advance,
DJ
-
Nov 12th, 2003, 07:47 AM
#2
Wouldn't a ListBox do exactly that?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 12th, 2003, 07:51 AM
#3
Thread Starter
Addicted Member
Yes, I suppose it would - however, I have to make my app look like another app that is written by somebody else, and unfortunately this other app has combo boxes that cannot be written into directly and therefore I need to use combo boxes.
This is quite simple in VB6 using a simple sendmessage call, but I don't wish to use API's in a .NET application.
Thanks anyway,
DJ
-
Nov 12th, 2003, 08:03 AM
#4
But a ListBox looks the same as a ComboBox, or at least it should.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|