what am i doing wrong?

mookie
08-16-2004, 04:55 PM
I have created a program that will allow me to edit robot programs. blah blah blah

the problem is that when i was debugging some stuff, I noticed that in my text1_keypress that it gets run twice for each key pressed. I know that it has to be a semi simple solution or would at least hope so

Optikal
08-16-2004, 05:07 PM
keypress event should only fire once, unless you are holding the key down, in which case I believe the keypress event fires for every key-repeat according to the timing set in the system keyboard settings.

Jonny
08-16-2004, 05:40 PM
unless you are using a different textbox control.... you can set up a keyboard hook to trigger an event when the key is pressed and when its released. Cant think of any other reason apart from the one posted earlier.

mookie
08-16-2004, 07:20 PM
unless you are using a different textbox control.... you can set up a keyboard hook to trigger an event when the key is pressed and when its released. Cant think of any other reason apart from the one posted earlier.


actually im using codemax control.

i didnt have this problem at first though. i thought maybe its because multiple documents were open but i dont knwo if thats the case or not

Rashka
08-16-2004, 10:38 PM
Without posting some code, you will not get a very specific answer.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum