|
|
#1 |
|
Baseband Member
Join Date: Sep 2008
Posts: 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 thank you
__________________
SAY NO TO PIRACY |
|
|
|
|
|
#2 |
|
Solid State Member
Join Date: Feb 2010
Posts: 7
|
IDK, but VB6 is Dated
|
|
|
|
|
|
#3 |
|
Baseband Member
Join Date: Sep 2008
Posts: 60
|
Hello rkolb86
![]() thanks for replaying vb6 is dated, can you help me in other language? I need the idea not the code thanks
__________________
SAY NO TO PIRACY |
|
|
|
|
|
#4 | |
|
Site Team
Join Date: Jul 2009
Posts: 2,627
|
Quote:
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. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|