473,396 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

INKEY$ equivilant

Is there a .Net equiv of the old BASIC INKEY$ function?
Nov 20 '05 #1
4 3037
"Wayne M J" <no*@home.nor.bigpuddle.com> schrieb
Is there a .Net equiv of the old BASIC INKEY$ function?


No. Windows applications are message driven. Whenever a key is pressed,
your application gets a message. You can write a procedure reacting to the
message. The procedure is called an event handler.

see also:
http://msdn.microsoft.com/library/en...ntHandling.asp
especially sub topic "Mouse and keyboard events in Windows Forms".

Event basics:
http://msdn.microsoft.com/library/en...nheritance.asp
Background information (maybe not for beginners):
http://msdn.microsoft.com/library/en.../userinput.asp
http://msdn.microsoft.com/library/en...sagequeues.asp

--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Cor
Hi Wayne,

You can have a look at the events for keyDown, keyUp, KeyPress

I hope this helps?

Cor
Is there a .Net equiv of the old BASIC INKEY$ function?

Nov 20 '05 #3
* "Wayne M J" <no*@home.nor.bigpuddle.com> scripsit:
Is there a .Net equiv of the old BASIC INKEY$ function?


Are you talking about reading a key in a console application?

Currently only available via p/invoke:

<http://www.google.ch/groups?selm=OYCCbMVbCHA.2188%40tkmsftngp08>

In .NET 2.0 there will be a 'Console.ReadKey' method, according to:
<http://longhorn.msdn.microsoft.com/lhsdk/ref/ns/system/c/console/m/readkey1.aspx>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Are you talking about reading a key in a console application?

Currently only available via p/invoke:


That is what I thought.
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: davidshook | last post by:
I am a begginer with not too much time on my hand. I do some html pages with Dreamweaver and with some minor Flash actionscript and I have a minor ability (with the help of lots of tutorials) to do...
3
by: Frank V. | last post by:
Hello, I'm new to VB.net, moving from VB6 to VB.net. My question is "In VB.net what is the equivalent of the App.major (and others) VB6 property. I, like a lot of people I imaging, display the...
4
by: Bill | last post by:
Does ASP have a file whose function is similar to .htaccess on Apache? I'm looking to protect subdirectory content.
1
by: Thiko | last post by:
Hi, I need to convert this anonymous pl-sql block into transact-sql to run in Microsoft SQL Server Query Analyser. Does anyone know what the conversion syntax would be? I know that to...
4
by: Jeff | last post by:
Hello all, I've created a COM dll for a number-crunching program. However when I tell the program what function to use from the DLL, it claims that it cant find the function. I have the...
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
6
by: Trint Smith | last post by:
This is how I did this sql server 2000 string in vb.net: "FROM TBL_TravelMain WHERE TravelMain_Mlv = '" & MLVTrimString & "'" In C# you can't use the & something &. How do I put this in C#,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.