Arrow down in ASCII 
Author Message
 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  
 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  
 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  
 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  
 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  
 
 [ 5 post ] 

 Relevant Pages 

1. up arrow, down arrow, left arrow, right arrow

2. Up Arrow and Down Arrow...

3. Arrow Up Arrow Down???

4. drop down box and down arrow key

5. Drop Down Combo box with smaller down arrow icon

6. Ascii char for Up arrow

7. ascii and arrow keys

8. Newbie Help - disabling the down arrow

9. testign for up/down arrow keys on laptop

10. Can't trap Up/Down Arrows

11. CommandButton / Down Arrow

12. Down Arrow on Button

 

 
Powered by phpBB® Forum Software