VB6 keyCode

Feras

Baseband Member
Messages
60
Hello everybody :)

I am a starter in VB and I have a question

you know that we us vbKeyF ( for example ) to do something when user press F,

well, what if I want to do something when user type the word hello ( for example )

please with example :eek:

thank you
 
Hello rkolb86 :)

thanks for replaying

vb6 is dated, can you help me in other language? I need the idea not the code

thanks
 
IDK, but VB6 is Dated
Not hugely helpful!

I'm no VB person either - I know bits but wouldn't want to give actual example code in case I got something wrong and confused you.

Essentially though the idea is to check the state of the textbox each time the user presses a key. So instead of capturing when the user presses a key and acting on that directly, you'd capture when the user presses a key, check the contents of the textbox is equal to "hello", and if it is you can do something. If not you just wait for the next key to be entered.
 
Back
Top Bottom