-
Jun 30th, 2020, 07:02 AM
#1
Thread Starter
Junior Member
Keypress event in C++
Please how can I get a character if a key is press on a keyboard in c++ using visual studio. for example if s or S is press, the character pressed should be output in a message box.
-
Jul 1st, 2020, 02:15 AM
#2
Re: Keypress event in C++
Is this a console, WIN32, MFC, other program?
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jul 1st, 2020, 02:22 AM
#3
Thread Starter
Junior Member
Re: Keypress event in C++
Please am working on window form application
-
Jul 1st, 2020, 08:59 AM
#4
Re: Keypress event in C++
Windows Forms doesn't sound like C++ at all. It sounds like C#, or perhaps the .NET based C++/CLI. If it is one of those, I can move the thread.
My usual boring signature: Nothing
-
Jul 1st, 2020, 11:39 AM
#5
Thread Starter
Junior Member
Re: Keypress event in C++
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|