473,545 Members | 937 Online
Bytes | Software Development & Data Engineering Community
+ 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
Jul 21 '05 #1
5 2942
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
Jul 21 '05 #2
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
Jul 21 '05 #3
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$******** ********@TK2MSF TNGP09.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

Jul 21 '05 #4
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
Jul 21 '05 #5
Hi Cor,

OK - I'll give it a try.

Tx,

Bernie

"Cor Ligthert" <no************ @planet.nl> wrote in message
news:uf******** ******@TK2MSFTN GP15.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

Jul 21 '05 #6

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

Similar topics

3
9292
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, checkbox's and icons are displayed as they are meant to be. My problem is this, I am trying to achieve the same results as I get with CheckListBox(s),...
2
2957
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, etc. The ListView is in Details, with headers and an Icon. What I am trying to accomplish is to rename/append check mark file massively (at...
4
1449
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. Now this sounds to me like an Internet Explorer setting needs changing but then I thought how do you go about making sure a TextBox allways...
2
16625
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 checklistbox to be checked i want to have all items in the checklistbox to be unchecked. thanks advance, folks.
4
2303
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 '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. ...
1
2268
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 the text in the search box. For example if user enters GA lstbox will show GAB GABARDINE GABLE ... ...
2
2761
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 am currently doing) but that only allows for one checkbox. Does anyone know how I could have two (sample code appreciated). Thanks,
7
1381
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 with 'A' and when 'B' is pressed control should go to the word that starts with 'B' and so on...... Please advise
3
3373
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 checklistbox "text" textbox checklistbox "text" textbox checklistbox "text" textbox checklistbox "text" textbox can any 1...
0
7467
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
7401
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
7656
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. ...
0
7807
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4944
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
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...
1
1879
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 we have to send another system
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.