|
Subject:
|
What is the VB equivalent to the Inkey$ command ?
|
|
Posted By:
|
RichardCyberPunk
|
Post Date:
|
12/7/2005 10:34:33 PM
|
At the moment i am learning programming in Visual Basic 6.0, but I do not know the VB command/word that is used to register key-strokes/input. In GW-basic/Quick-basic, the BASIC-command is INKEY$. Can anyone tell me the correct commandword for VB 6.0 ?
PS: It might seem silly, but I do not have a VB 6.0 programming reference book, so therefore I am learning it the hard way to program this fantastic language.
|
|
Reply By:
|
marcostraf
|
Reply Date:
|
12/8/2005 12:42:54 PM
|
there is not such as key input from console in VB6. The only way to get user keystrokes is to catch the form KeyDown event (after setting the KeyPreview property to true). Or you can use API or put a messageHook in your app, but if you are just learning stay away from that. BTW you can find all the documentation online at www.msdn.com. Or, if you have the original VB6 distribution CD (that you should unless you have a pirate copy) all the documentation is there ready to be installed, no need for any book BTW2 are you new to programming? If not I suggest you to skip VB6, and go to .NET directly, VB6 is nowaday just a legacy language, even though still used.
Marco
|