By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,558 Members | 1,673 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,558 IT Pros & Developers. It's quick & easy.

Possible to have a ComboBox with TextBox edit capabilities?

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Yes, you can do this by default
"AnAnimal" <An******@somewhere.net> wrote in message
news:3s********************************@4ax.com...
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.

Nov 20 '05 #2

P: n/a
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

P: n/a
Is there a fix or a work around?

On Wed, 17 Sep 2003 23:39:40 +0200, "Herfried K. Wagner [MVP]"
<hi*******@m.activevb.de> wrote:
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
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.


Nov 20 '05 #4

P: n/a
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
Is there a fix or a work around?


Sorry, I don't know. Maybe it's fixed in .NET 1.1. Which version of .NET
do you use?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5

P: n/a
..NET Framework 1.0 Version 1.0.3705
On Thu, 18 Sep 2003 19:37:20 +0200, "Herfried K. Wagner [MVP]"
<hi*******@m.activevb.de> wrote:
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
Is there a fix or a work around?


Sorry, I don't know. Maybe it's fixed in .NET 1.1. Which version of .NET
do you use?


Nov 20 '05 #6

P: n/a
The selection of text in a combobox with the mouse works fine for me. I
am using VS 2003 with Net Framework 1.1

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
Is there a fix or a work around?


Sorry, I don't know. Maybe it's fixed in .NET 1.1. Which version of .NET
do you use?

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #7

P: n/a
Cor
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
Nov 20 '05 #8

P: n/a
Hello,

"Cor" <no*@non.com> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #9

P: n/a
That's an idea!

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

On Thu, 18 Sep 2003 22:40:18 +0200, "Cor" <no*@non.com> wrote:
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


Nov 20 '05 #10

P: n/a
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #11

P: n/a
Hello,

"Cor" <no*@non.com> schrieb:
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 K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #12

P: n/a
Cor
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

Nov 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.