473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

control responding for clicking keys

Hello

I'm looking for a solution for my project. All I want is to have a textbox
control which can respond for pressing keys. The other control will be
dropdownlist which will be retrieving data from database with "where"
condition based on what is typed in the first control.

Example: There will be string "Wa" in textbox. When first pressing "W" ->
corresponding dropdownlist will show list of cities starting with "W", then
when user press "a" (String will be "Wa") - list of cities will be shorten
to cities starting with "Wa" and so on....

Maybe there is a better solution - please advice me and reffer me to
appropriate web address to download/read abou the solution.
Best Regards

Darek
Dec 28 '06 #1
1 816
dgk
On Thu, 28 Dec 2006 15:35:57 +0100, "Dariusz Tomon"
<d.*****@mazars.plwrote:
>Hello

I'm looking for a solution for my project. All I want is to have a textbox
control which can respond for pressing keys. The other control will be
dropdownlist which will be retrieving data from database with "where"
condition based on what is typed in the first control.

Example: There will be string "Wa" in textbox. When first pressing "W" ->
corresponding dropdownlist will show list of cities starting with "W", then
when user press "a" (String will be "Wa") - list of cities will be shorten
to cities starting with "Wa" and so on....

Maybe there is a better solution - please advice me and reffer me to
appropriate web address to download/read abou the solution.
Best Regards

Darek
The textbox is running in the client browser. That means that only
javascript can handle the keypresses. Look into Atlas or another
implementation of AJAX. I think that Atlas specifically has an
autocomplete implementation of a textbox.

Autocomplete seems to me a better way of dealing with this than a
separate listbox if the idea is just to complete the entry in the
textbox.
Dec 28 '06 #2

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

Similar topics

8
by: C. Alexander | last post by:
Im running a small server that seems to work fine outside the IDE as an exe, but within the IDE, when I run the program for the first time, i can start/stop the host many times. But I end the...
10
by: Sally | last post by:
When I click on a control in a subform, what is the syntax to return the name of the subform control on the main form that contains the subform? MsgBox "MySubform is in " & < ???? > Thanks, ...
2
by: solex | last post by:
Hello, I have noticed that when switch between MDI children the focus is changed from the control with the focus when last deactivate to the control with the TabOrder of 1. Is there an automatic...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
1
by: perse981 | last post by:
Hi I need to know how, if even possible, to enable the user of my program to control the Size and Posisiton of the circle I have Drawn on the form by using the Enter Key (to increase size), Shift...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
5
WebDunce
by: WebDunce | last post by:
hey all, i'm building a custom control. it contains a treeview and a context menu. each tree node's context menu property is set to the control's context menu. it works good...except... if...
2
by: Steve | last post by:
Hi All I am using a numericupdown in a VB.net 2005 App and set the interceptarrowkeys property to false when not in edit mode The numericupdown still scrolls the value when I click on the...
6
by: hurricane_number_one | last post by:
I tried this but it doesn't work keybd_event(VK_CONTROL, 0, 0, 0) mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0) keybd_event(VK_CONTROL, 0,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.