473,549 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Possible to have a ComboBox with TextBox edit capabilities?

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
12 6799
Yes, you can do this by default
"AnAnimal" <An******@somew here.net> wrote in message
news:3s******** *************** *********@4ax.c om...
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
Hello,

"AnAnimal" <An******@somew here.net> schrieb:
I can position the cursor with the mouse and then use Shift+LeftArrow
or Shift+RightArro w 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
Is there a fix or a work around?

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

"AnAnimal" <An******@somew here.net> schrieb:
I can position the cursor with the mouse and then use Shift+LeftArrow
or Shift+RightArro w 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
Hello,

"AnAnimal" <An******@somew here.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
..NET Framework 1.0 Version 1.0.3705
On Thu, 18 Sep 2003 19:37:20 +0200, "Herfried K. Wagner [MVP]"
<hi*******@m.ac tivevb.de> wrote:
Hello,

"AnAnimal" <An******@somew here.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
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.ac tivevb.de> wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Hello,

"AnAnimal" <An******@somew here.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
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
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
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12033
by: RRoberto | last post by:
Goodmorning, Is it possible to edit a combobox like a textbox? I will appreciate any suggestion . Thank You Roberto
9
20204
by: Li Pang | last post by:
I use a combobox control to populate the data. I want to prevent to change data (freeze the data in the filed). The only solution I have is to set Enabled property to "False", but it gray out the field. The question is how to change the color back to white? Set the style property to "Dropdown List" is not an optional. Is there is another...
5
2831
by: jaYPee | last post by:
i have successfully added a combobox to my datagrid by setting their datasource from one of my table. here's my code... Dim grdColStyle6 As New DataGridComboBoxColumn() With grdColStyle6 .MappingName = "MajorID" 'must be from the grid table... .HeaderText = "Major" .Width = 120 .ColumnComboBox.DataSource =
4
1620
by: Lars Netzel | last post by:
I want a datagrid cell to be a combobox (based on database records) and when you select a value in the combobox I want to add info to cells on the same row in the datagrid but with More info from the same record in the database as the one selecte din the combobox, how do I do this??? I also would like to be able to enter a value in the...
20
2016
by: MadCrazyNewbie | last post by:
Hey group, I keep getting the following error: "An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.data.dll Additional information: There is no row at position 1." on the following line of code:
9
2468
by: Jason Simard via .NET 247 | last post by:
Hi, Does anyone know a way to make a combobox "read-only", similar to the read-only property of a textbox? In essence, make a combobox readonly...making the combobox text not gray out but be disabled. There is no readonly property for a combobox like there is for a text box. Thx, Jason
6
1225
by: simchajoy2000 | last post by:
Hi, I know there are a lot of postings out there concerning this subject already, but so far I have not discovered anything that meets my specific needs. Everything I have found populates the combobox column with values from a database. I need to be able to manually set these values in my code. I have tried to make the example code I...
1
2617
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from Products table.
4
1683
by: Rich | last post by:
Hello, I have 3 textboxes and 1 combobox on a form. On entering the control I want to select all the text. I can make an array of textboxes like this: Dim arrTxt As TextBox() = {txt1, txt2, txt3} Then I loop through that array Private Sub onEntering(ByVal sender As Object, ...) Handles _
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7450
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.