Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-02-2010, 06:15 PM   #1
Baseband Member
 
Join Date: Sep 2008
Posts: 60
Default VB6 keyCode

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
Feras is offline   Reply With Quote
Old 02-07-2010, 12:10 PM   #2
Solid State Member
 
Join Date: Feb 2010
Posts: 7
Default Re: VB6 keyCode

IDK, but VB6 is Dated
__________________

rkolb86 is offline   Reply With Quote
Old 02-08-2010, 02:16 AM   #3
Baseband Member
 
Join Date: Sep 2008
Posts: 60
Default Re: VB6 keyCode

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
Feras is offline   Reply With Quote
Old 02-08-2010, 03:22 AM   #4
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: VB6 keyCode

Quote:
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.
berry120 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:16 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0