Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: VB6 keyCode  (Read 3321 times)

0 Members and 1 Guest are viewing this topic.

feras

    Topic Starter


    Beginner

    Thanked: 1
  • Experience: Experienced
  • OS: Linux variant
VB6 keyCode
« on: February 03, 2010, 01:47:15 PM »
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

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: VB6 keyCode
« Reply #1 on: February 03, 2010, 02:05:19 PM »
keep track of how many keys are pressed, and when the user pressed h,e,l, or o, make sure the count is proper (ie, h can only be pressed when the count is 0, e can be pressed only when it's 1, etc. And the Else clause can be used to revert the count to zero.
I was trying to dereference Null Pointers before it was cool.