Powered by Bravenet Bravenet Blog

Tag Board

jeriel: hai..

Please type in the characters shown in the black box.

Wednesday, January 23rd 2008

4:21 AM

KEYTRAPPING

                   Our 8th laboratory activity we applied the key trapping in our program. We used key trapping for eliminating unacceptable keystroke. Key press to allow you to input Letters/Numbers.

 

We use this formula:

Select case e.keychar

Case cchar (“”) to cchar (“”)

e.Handled=false

case else

e.Handled=true

End select

            On how to edit:

Sendkeys.Send (“{home} + {end}”)

 

            I’ve learned also how to use error provider. It become Error Provider if you enter unacceptable keys, it will display an error message.

0 user comments.

There are no comments to this entry.

Post New Comment

BraveJournal Member Non-Member
No Smilies More Smilies »

Please type in the characters shown in the black box.