Possible to have a ComboBox with TextBox edit capabilities?

  • Thread starter Thread starter AnAnimal
  • Start date Start date
A

AnAnimal

Is it possible to make the text box portion of a ComboBox (in DropDown
style) behave like a TextBox?

By that I mean can it allow the user to select a portion of text by
hilighting it with the mouse cursor and replacing the hilighted
portion?

Thanks.
 
Hello,

AnAnimal said:
I can position the cursor with the mouse and then use Shift+LeftArrow
or Shift+RightArrow to select the text but cannot select it by
clicking the left mouse button and moving the cursor?

That's a bug in the ComboBox control.
 
The selection of text in a combobox with the mouse works fine for me. I
am using VS 2003 with Net Framework 1.1
 
Hi Animal,
I don't know what bug it is in the combobox,
But I have seen advises for combobox bugs to use a listbox with a textbox
above it.

Cor
 
Hello,

Cor said:
I don't know what bug it is in the combobox,

If you use .NET 1.0, just add a combobox onto a form and press F5. You
won't be able to select text in the combobox's textbox by using the mouse.
 
That's an idea!

Any idea of where I can find the down arrow icon that is on the
standard ComboBox DropDown button?
 
Hello,

AnAnimal said:
Any idea of where I can find the down arrow icon that
is on the standard ComboBox DropDown button?

Have a look at the 'ControlPaint.DrawComboButton' method.
 
Hello,

Cor said:
I don't know what bug it is in the combobox,
But I have seen advises for combobox bugs to use a listbox
with a textbox above it.

How would you create the floating listbox part that can jud out (I am sure
that is not the right word) the window it is placed on.
 
Herfried,
Do you know how many bugs there where (are) with the combobox.
I thought I has seen this sentence once somewhere,
I don't know if it was with the combobox, the dropdown box or the
dropdownlist box.
I could use this textbox listbox once as a workaround.
(But it does of course not dropdown, you can choice and put the text in the
textbox, so it needs more space on the form).

I remember me from some weeks ago that someone said in this newsgroup, "what
is there better on VS2003 comnparising to VS2002" and he was really angry
only because all combobox bugs which where stayed in his opinion. And you
know that I find VS2003/Net 1.1 real a big aprovement to VS2002/Net 1.0

But I said in this message, I thougth and maybe I had to write that extra in
my previous post, but sometimes I forget that.

Clear?
Cor
 
Back
Top