473,788 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change AutoComplete to "full text" search?

Is it possible to change the autocomplete behaviour to search for the word
instead of just checking for the prefix?

For example, if I have the following items:

Big Mac
Quarter Pounder
Cheeseburger

and someone types: Pounder, it should display "Quarter Pounder"?

Thanks!

--
sp**********@ro gers.com (Do not e-mail)
Apr 4 '08 #1
7 3673
On Apr 4, 2:20 pm, Spam Catcher <spamhoney...@r ogers.comwrote:
Is it possible to change the autocomplete behaviour to search for the word
instead of just checking for the prefix?

For example, if I have the following items:

Big Mac
Quarter Pounder
Cheeseburger

and someone types: Pounder, it should display "Quarter Pounder"?

Thanks!

--
spamhoney...@ro gers.com (Do not e-mail)
For instance, try this:

Private Sub TextBox1_TextCh anged(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles TextBox1.TextCh anged
If TextBox1.Text = "Pounder" Then
TextBox1.Text = "Quarter Pounder"
End If
End Sub
Apr 4 '08 #2
kimiraikkonen <ki************ *@gmail.comwrot e in news:81162e90-2bcd-4d62-
87************* **@b5g2000pri.g ooglegroups.com:
For instance, try this:

Private Sub TextBox1_TextCh anged(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles TextBox1.TextCh anged
If TextBox1.Text = "Pounder" Then
TextBox1.Text = "Quarter Pounder"
End If
End Sub
How is that going to help me in an autocomplete situation?

--
sp**********@ro gers.com (Do not e-mail)
Apr 4 '08 #3
On Apr 4, 7:26*pm, Spam Catcher <spamhoney...@r ogers.comwrote:
kimiraikkonen <kimiraikkone.. .@gmail.comwrot e in news:81162e90-2bcd-4d62-
8773-54fe107c4...@b5 g2000pri.google groups.com:
For instance, try this:
Private Sub TextBox1_TextCh anged(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles TextBox1.TextCh anged
If TextBox1.Text = "Pounder" Then
TextBox1.Text = "Quarter Pounder"
End If
End Sub

How is that going to help me in an autocomplete situation?

--
spamhoney...@ro gers.com (Do not e-mail)
I know it's not directly related to AutoComplete property but this can
give you an urgent solution that makes text field as you wish if typer
writes "Pounder" then textbox becomes "Ouarter Pounder" because of
textbox's text_changed event, i hope you tried it.
Apr 4 '08 #4
kimiraikkonen <ki************ *@gmail.comwrot e in news:0ecc162b-f2b4-4740-
b7************* **@p39g2000prm. googlegroups.co m:
I know it's not directly related to AutoComplete property but this can
give you an urgent solution that makes text field as you wish if typer
writes "Pounder" then textbox becomes "Ouarter Pounder" because of
textbox's text_changed event, i hope you tried it.
Unfortunately its not what I'm really looking for - I would like to have
the autocomplete list populated with suggestions like what Google Suggests
does.

If I only handle the TextChange event ... it'll be too much of a kudlge to
be rewriting the user's input on the fly? I rather be able to display the
suggestions in the autocomplete portion of the control.

But, thanks for the suggestion!

--
sp**********@ro gers.com (Do not e-mail)
Apr 5 '08 #5

"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** ***********@127 .0.0.1...
kimiraikkonen <ki************ *@gmail.comwrot e in
news:0ecc162b-f2b4-4740-
b7************* **@p39g2000prm. googlegroups.co m:
>I know it's not directly related to AutoComplete property but this can
give you an urgent solution that makes text field as you wish if typer
writes "Pounder" then textbox becomes "Ouarter Pounder" because of
textbox's text_changed event, i hope you tried it.

Unfortunately its not what I'm really looking for - I would like to have
the autocomplete list populated with suggestions like what Google Suggests
does.

If I only handle the TextChange event ... it'll be too much of a kudlge to
be rewriting the user's input on the fly? I rather be able to display the
suggestions in the autocomplete portion of the control.

But, thanks for the suggestion!

--
sp**********@ro gers.com (Do not e-mail)

Textbox has its own Autocomplete functionallity.

As an example:

Me.TextBox1.Aut oCompleteCustom Source.AddRange (New String() {"One", "Two",
"Three"})
Me.TextBox1.Aut oCompleteMode = System.Windows. Forms.AutoCompl eteMode.Suggest
Me.TextBox1.Aut oCompleteSource =
System.Windows. Forms.AutoCompl eteSource.Custo mSource

The AutoCompleteCus tomSource can be populated in pretty much any way you
want as long as it is an array of strings. Get it from database or where
ever.

Hope this is what you are looking for
Lloyd Sheen

Apr 5 '08 #6
"Lloyd Sheen" <a@b.cwrote in
news:OO******** ******@TK2MSFTN GP05.phx.gbl:
Textbox has its own Autocomplete functionallity.

As an example:

Me.TextBox1.Aut oCompleteCustom Source.AddRange (New String() {"One",
"Two", "Three"})
Me.TextBox1.Aut oCompleteMode =
System.Windows. Forms.AutoCompl eteMode.Suggest
Me.TextBox1.Aut oCompleteSource =
System.Windows. Forms.AutoCompl eteSource.Custo mSource

The AutoCompleteCus tomSource can be populated in pretty much any way
you want as long as it is an array of strings. Get it from database
or where ever.

Hope this is what you are looking for
Yes, I know - but AutoComplete only search the PREFIX of the entries.

As you see in my example, if you populate the autocomplete source with:

Big Mac
Quarter Pounder
Cheeseburger

and someone types in Pounder... it won't display Quarter Pounder as a
suggestion...

That's my problem - not how to populate the autocomplete datasource.

I want to override/rewire the AutoComplete functionality in Winform
Controls - if someone can point me in the right direction, that'll be
great!

Thanks.

--
sp**********@ro gers.com (Do not e-mail)
Apr 5 '08 #7
"Lloyd Sheen" <a@b.cwrote in
news:uE******** ******@TK2MSFTN GP05.phx.gbl:
>
"Lloyd Sheen" <a@b.cwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>>
"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******* *************** ************@12 7.0.0.1...
>>"Lloyd Sheen" <a@b.cwrote in
news:OO****** ********@TK2MSF TNGP05.phx.gbl:

Textbox has its own Autocomplete functionallity.

As an example:

Me.TextBox1. AutoCompleteCus tomSource.AddRa nge(New String() {"One",
"Two", "Three"})
Me.TextBox1. AutoCompleteMod e =
System.Windo ws.Forms.AutoCo mpleteMode.Sugg est
Me.TextBox1. AutoCompleteSou rce =
System.Windo ws.Forms.AutoCo mpleteSource.Cu stomSource

The AutoCompleteCus tomSource can be populated in pretty much any
way you want as long as it is an array of strings. Get it from
database or where ever.

Hope this is what you are looking for

Yes, I know - but AutoComplete only search the PREFIX of the
entries.

As you see in my example, if you populate the autocomplete source
with:

Big Mac
Quarter Pounder
Cheeseburge r

and someone types in Pounder... it won't display Quarter Pounder as
a suggestion...

That's my problem - not how to populate the autocomplete datasource.

I want to override/rewire the AutoComplete functionality in Winform
Controls - if someone can point me in the right direction, that'll
be great!

Thanks.

--
sp**********@ro gers.com (Do not e-mail)


Ok try this.

Hmmm... Intersting, I'll give it a try.

Thanks!
--
sp**********@ro gers.com (Do not e-mail)
Apr 6 '08 #8

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

Similar topics

10
13275
by: Jay Chan | last post by:
I keep getting the following error message when I run a serie of SQL commands: Server: Msg 9002, Level 17, State 6, Line 15 The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space. I have tried "dump transaction tempdb with no_log" right before I run the SQL command. But that doesn't help.
0
1484
by: Robert Oschler | last post by:
I have a database table with a field that is indexed as a "full-text" search, since I want the capabiity. However, I also want the ability to quickly retrieve records from that table that are ins "sorted-order" by this very same field. Do I still need to create a "regular" non-full-text search index to have this capability? Or will the "full-text" index be sufficient? Thanks.
26
3004
by: Michel Rouzic | last post by:
I have a binary file used to store the values of variables in order to use them again. I easily know whether the file exists or not, but the problem is, in case the program has been earlier interupted before it could write the variables to the file, the file is gonna be empty, and then it's gonna load a load of crap into variables, which i want to avoid. That file is always 36 bytes big (it contains 4 double-precision floats and one...
2
2198
by: Samuel R. Neff | last post by:
What options are available for doing full-text searches of database data without using a database-specific full-text engine? The only option I've found is Google's Search Appliance but it's an expensive hardware solution and we prefer a software solution. In the past I've used development languages that had OEM Verity support which was wonderful but as far as I can tell the only out-of-the-box search available in ASP.NET is Index...
3
2965
by: Olivier Verdin | last post by:
Hi, I am developing a multi-language application in ASP.NET in c#. I am using a file field html control to upload an image. I would like to change the text on the button "browse" that comes with the control. I need to change the text to have the correct text for the language chosen.
1
4427
hpbutterbeer
by: hpbutterbeer | last post by:
We have a Machine Project and my brain is currently in a clouded state. Sorry, I'm just a beginner in C Programming... Text twist is a windows game whose main objective is to form words out of the letters shown on the screen, you move on to the next level when you are able to form a word with all the letters given. In the actual game you click on the letters of the word, in this text version you simply type the words. To be able to...
8
2072
by: Freddy Coal | last post by:
Hi, I would like make a search and replace in a file, for that I need get the text in a textbox, but I need recognyze literally characters of the user like a commands, for example: The chain of the user is: "Hello world" & chr(64) & vbcrlf If I capture the textbox, I get: ""Hello world" & chr(64) & vbcrlf" But I would like get the string: "Hello world@" & vbcrlf
10
7342
by: Prisoner at War | last post by:
Besides resorting to images. Say, a headline tilted at 30° or something. TIA!
1
1371
by: avipeter | last post by:
Hi to all. I am so new in this, I don't know how to finish my homework-question. I have to go to bed now ánd need to find an answer a.s.a.p. Who is willing to help this Dutch boy? I have to count the number of cars in a carparking. So far so good. But: If number of cars >100 there should popup an alert "GARAGE FULL" If number of cars =0 there should popup an alert "GARAGE EMPTY" This is how far I have come in 4 hours. ;-)
0
9498
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10177
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7519
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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
2
3677
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.