keypress enter

carebear
04-15-2002, 08:33 AM
if u can, please help newbie:

if i press the return key while in the text box,call the add option

Thinker
04-15-2002, 08:39 AM
If you look for KeyAscii = 13 in the KeyPress event of the textbox,
you can have it do whatever you like. You might want to also set
KeyAscii = 0 if you find 13 and do something else.

carebear
04-15-2002, 10:43 AM
thank you. works good..
next question.

i have a txtbox and a list box. i did the code to : if i press an item in the list box send it back to the txt box. there i can remove it with my remove button, but, if it is the #1 item in my lstindex, and it is in the txtbox, when i remove it i also remove lstindex #0. i don't want that to happen until i place #0index in txtbox and press remove. why is it doing that????

Thinker
04-15-2002, 01:04 PM
I can't tell. Maybe you will need to post your code.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum