Author |
Message |
Pierr #1 / 5
|
 Arrow down in ASCII
Hi All, I'm working on a Autofill-kind-of-thing... This is my problem: I'm typing something in a textbox. Automatically, everything that starts the same way in my database will show in a listbox. Now, I want to use my 'arrow down key' to go from my textbox to my listbox (listbox.setfocus). I know ascii-code 50 means "arrow down", but then it also types a '2' in my textbox and this, I want to prevent! Isn't there an ascii-code to only use the 'arrow down' key not in my Numlock, so only those four arrow-keys????? Thanks ya all, Pierre * Sent from AltaVista http://www.*-*-*.com/ Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
|
Thu, 30 May 2002 03:00:00 GMT |
|
 |
Bill F #2 / 5
|
 Arrow down in ASCII
Pierre, Search your VB help for Keycodes. It lists the constants for all keys including the arrow keys. By the way ascii code 50 is the code for the number 2 key. Bill
Quote: > Hi All, > I'm working on a Autofill-kind-of-thing... > This is my problem: > I'm typing something in a textbox. Automatically, > everything that starts the same way in my database will > show in a listbox. Now, I want to use my 'arrow down key' > to go from my textbox to my listbox (listbox.setfocus). I > know ascii-code 50 means "arrow down", but then it also > types a '2' in my textbox and this, I want to prevent! > Isn't there an ascii-code to only use the 'arrow down' key > not in my Numlock, so only those four arrow-keys????? > Thanks ya all, > Pierre > * Sent from AltaVista http://www.altavista.com Where you can also find
related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
|
Thu, 30 May 2002 03:00:00 GMT |
|
 |
tripp #3 / 5
|
 Arrow down in ASCII
ascii codes arent keycodes. the down arrow does not have an ascii value. you would need to use keycode. trippz
Quote: > Pierre, > Search your VB help for Keycodes. It lists the constants for all keys > including > the arrow keys. By the way ascii code 50 is the code for the number 2 key. > Bill
> > Hi All, > > I'm working on a Autofill-kind-of-thing... > > This is my problem: > > I'm typing something in a textbox. Automatically, > > everything that starts the same way in my database will > > show in a listbox. Now, I want to use my 'arrow down key' > > to go from my textbox to my listbox (listbox.setfocus). I > > know ascii-code 50 means "arrow down", but then it also > > types a '2' in my textbox and this, I want to prevent! > > Isn't there an ascii-code to only use the 'arrow down' key > > not in my Numlock, so only those four arrow-keys????? > > Thanks ya all, > > Pierre > > * Sent from AltaVista http://www.altavista.com Where you can also find > related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is > Beautiful
|
Fri, 31 May 2002 03:00:00 GMT |
|
 |
Peter Quic #4 / 5
|
 Arrow down in ASCII
Pierre, 'cause your from Belgium and I'm too, I give you this hint ;-) Use the event KeyDown rather then KeyPress. Then you can use the KeyCode instead of the ASCII-codes vbKeyDown vbKeyUp Pete
Quote: > Hi All, > I'm working on a Autofill-kind-of-thing... > This is my problem: > I'm typing something in a textbox. Automatically, > everything that starts the same way in my database will > show in a listbox. Now, I want to use my 'arrow down key' > to go from my textbox to my listbox (listbox.setfocus). I > know ascii-code 50 means "arrow down", but then it also > types a '2' in my textbox and this, I want to prevent! > Isn't there an ascii-code to only use the 'arrow down' key > not in my Numlock, so only those four arrow-keys?????
|
Sun, 02 Jun 2002 03:00:00 GMT |
|
 |
Peter Qui #5 / 5
|
 Arrow down in ASCII
Pierre, 'cause your from Belgium and I'm too, I give you this hint ;-) Use the event KeyDown rather then KeyPress. Then you can use the KeyCode instead of the ASCII-codes vbKeyDown vbKeyUp Pete
Quote: > Hi All, > I'm working on a Autofill-kind-of-thing... > This is my problem: > I'm typing something in a textbox. Automatically, > everything that starts the same way in my database will > show in a listbox. Now, I want to use my 'arrow down key' > to go from my textbox to my listbox (listbox.setfocus). I > know ascii-code 50 means "arrow down", but then it also > types a '2' in my textbox and this, I want to prevent! > Isn't there an ascii-code to only use the 'arrow down' key > not in my Numlock, so only those four arrow-keys?????
|
Sun, 02 Jun 2002 03:00:00 GMT |
|
|
|