Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2005, 11:34 PM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is the VB equivalent to the Inkey$ command ?

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.


 
Old December 8th, 2005, 01:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb Format equivalent in SQL debbiecoates Access VBA 2 November 5th, 2008 03:22 PM
VB equivalent of this C# code yukijocelyn ASP.NET 2.0 Basics 2 October 1st, 2007 10:22 PM
What is C# Component equivalent to in VB.NET bekim C# 3 July 1st, 2004 03:24 PM
Command Button False equivalent pinkandthebrain VB.NET 2002/2003 Basics 2 February 2nd, 2004 11:09 PM
VB6! what is the VB.Net equivalent Louisa VB.NET 2002/2003 Basics 2 January 15th, 2004 12:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.