Newbie Q: Getting keystrokes without the user hitting the Enter Button

This is a discussion on Newbie Q: Getting keystrokes without the user hitting the Enter Button within the C# Programming forums, part of the General Programming Boards category; Anybody know how I can get input (char particularly), without the user having to hit the Enter key? I kinda ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    1

    Question Newbie Q: Getting keystrokes without the user hitting the Enter Button

    Anybody know how I can get input (char particularly), without the user having to hit the Enter key? I kinda just want to get his key strokes.

    I thought I'd find the answers on the FAQ, but I guess its not there!? If anybody could clue me in on this I would greatly appriciate it!

    Thanks!

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    Add an event of your own to the controls keydown eventhandler.

    If you use Visual Studio, right click on the control and select properties, click the lightning symbol for a list of available events, then doubleclick on the keydown event. It will create an event-handler for you automatically.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. detect what button they push without enter
    By PHP in forum C++ Programming
    Replies: 3
    Last Post: 12-24-2002, 12:09 PM
  3. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  4. I need help badly
    By taz_jiggy in forum C++ Programming
    Replies: 4
    Last Post: 04-23-2002, 09:36 PM
  5. Replies: 0
    Last Post: 10-22-2001, 12:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21