Searching database for every keyboard press
-
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
-
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
Post some code here and someone might be able to help you.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files. Visit the Hindi forum here.
-
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
Why not use the textchanged event to filter the dataview.
Never underestimate the power of human stupidity RAH
-
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
Have you considered using autocomplete or whatever it is?
-
Hello to all. I'm having a little problem with one of the features that I want to have in my program. I want my program to search the names of the guest for every key press. For example, if I press H on the keyboard, all of the last names that starts with H should appear. I tried to use both KeyDown and KeyPress Events but either of them doesn't seem to work. Can anyone help me?
-
Why does it matter?
I know the language. I've read a book. - _Madmatt
-
Why not use the textchanged event to filter the dataview.
Never underestimate the power of human stupidity RAH
Doesn't the OnTextChanged event fire after the textbox looses focus? That would be too late for this purpose, I believe the OP wants type-ahead lookup functionality
I know the language. I've read a book. - _Madmatt
-
Doesn't the OnTextChanged event fire after the textbox looses focus? That would be too late for this purpose, I believe the OP wants type-ahead lookup functionality
I know the language. I've read a book. - _Madmatt
Mark Nischalke wrote:
Doesn't the OnTextChanged event fire after the textbox looses focus
I'll need to go check this, I was under the impression it would fire at each change of content.
Never underestimate the power of human stupidity RAH
-
Mark Nischalke wrote:
Doesn't the OnTextChanged event fire after the textbox looses focus
I'll need to go check this, I was under the impression it would fire at each change of content.
Never underestimate the power of human stupidity RAH
Had to check also. Winforms it raises the event while typing, in Web its raised after loosing focus
I know the language. I've read a book. - _Madmatt
-
Had to check also. Winforms it raises the event while typing, in Web its raised after loosing focus
I know the language. I've read a book. - _Madmatt
Being a winforms developer I did not even consider the webform activity. Talk about a narrow view on life. I would not have considered this a viable solution on a webform, you would have to resort to (spit) javascript or ajax to get any sort of reasonable response.
Never underestimate the power of human stupidity RAH
-
Why does it matter?
I know the language. I've read a book. - _Madmatt