473,473 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

listbox/checklistbox autocomplete

Is there any way to get a listbox or a checklistbox behave in an
autocomplete manner, such that given 'two', 'three', 'water', 'them' would
bring the selection to 'two' (not 'water') when I key in 'tw'? I know using
various autocomplete routines I can do this with a combobox, but I need to
do it with either a listbox or a checklistbox.

Thanks for any help.

Bernie Yaeger
Nov 21 '05 #1
4 2296
Bernie,

I once wrote this piece of code for you, is there still something wrong in
it?

http://groups-beta.google.com/group/...71d7cb3c?hl=en

You did not tell that.

Cor
Nov 21 '05 #2
Hi Cor,

I cannot get your code to work with a listbox because there are no
selectionstart and selectionlength properties. Could you try to modify your
code so that it works for a listbox? I have tried, but without any success.

Tx,

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:O$****************@TK2MSFTNGP09.phx.gbl...
Bernie,

I once wrote this piece of code for you, is there still something wrong in
it?

http://groups-beta.google.com/group/...71d7cb3c?hl=en

You did not tell that.

Cor

Nov 21 '05 #3
Bernie,

I think that you should create a static textbox in the code and simulate how
the textbox works in the combobox (as well the backspace etc.).

I don't like this kind of programming on the position, so try it yourself
first.

Cor
Nov 21 '05 #4
Hi Cor,

OK - I'll give it a try.

Tx,

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
Bernie,

I think that you should create a static textbox in the code and simulate
how the textbox works in the combobox (as well the backspace etc.).

I don't like this kind of programming on the position, so try it yourself
first.

Cor

Nov 21 '05 #5

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

Similar topics

5
by: Bernie Yaeger | last post by:
Is there any way to get a listbox or a checklistbox behave in an autocomplete manner, such that given 'two', 'three', 'water', 'them' would bring the selection to 'two' (not 'water') when I key in...
3
by: MikeY | last post by:
Hopefully someone can help me on this. I am using C#, making Windows forms. I have created a listView with checkbox's. I have enabled the checkboxes under the properties, and all the data,...
2
by: MikeY | last post by:
Hi all, I am coding window forms in C#. My problem is this: I have created a "Check ListView" or a 'ListView' with checkbox's. I have populated the it with my files from my folders, mps, txt,...
4
by: Kav | last post by:
As the title states, on my development PC there is a textbox which allways displays as a textbox. However on the clients PC it is showing previous entries he has made to the TextBox as a ListBox. ...
2
by: Mike Kim | last post by:
hi all, i have a checklistbox populated with about 50 items from database. and on the same form, i added to button to do the following. if you click this button, i want to have all items in the...
0
by: Ville Mattila | last post by:
Dear readers, I've some problems with the data binding of the checklistbox control. I'm using it with user preferences that are stored in a XML File. Information from the file is fetched with...
1
by: Microskills | last post by:
I am a new VB.NET programmer. I am writing a dictionary program with a Dictionary file has over 60000 entries. When user starts typing a word in the searchbox, I want to show words that start with...
2
by: Rex the Strange | last post by:
Hi All, Can anyone help me out here, please? I would like to have a listbox where each line item has two checkboxes associated with it. I know that I can use the checklistbox component (which I...
7
by: renuami | last post by:
Hello I have a listbox with 30 items/values and i am binding these values from database. Here is my question when 'A' is pressed automatically how can i transfer the control to the word that starts...
3
by: khalidjan9 | last post by:
I have data in an arraylist and i want to add data to checklist box on runtime and i also want to display a textbox besides it so that i get the comments example : checklistbox "text" textbox...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.