Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Windows Forms includes standard keyboard events that allow you to respond to specific key presses, and also provides ways for you to intercept, modify, and consume key presses at the application, form, and control level.
How Keyboard Input Works
Describes how keyboard messages are processed and transformed into keyboard events.
Using Keyboard Events
Provides information on the types of keyboard events and the information that is received by the keyboard event handlers.
How to: Modify Keyboard Input to a Standard Control
Presents a code example that shows how to modify key values before they reach a control.
How to: Determine Which Modifier Key Was Pressed
Demonstrates how to find out whether SHIFT, ALT, or CTRL was pressed in addition to another key.
How to: Handle Keyboard Input at the Form Level
Presents a code example that shows how to intercept keys before they reach a control.
.NET Desktop feedback feedback
.NET Desktop feedback is an open source project. Select a link to provide feedback:
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowDocumentation
User input in a Windows Forms app
Learn about user input in Windows Forms apps and the keyboard messages that raise events based on mouse or keyboard input.
Overview of keyboard input - Windows Forms .NET
Learn about how keyboard input works in Windows Forms for .NET. Keyboard events are raised by forms and controls and represent keys that are down, pressed, or up.
User Input - Windows Forms .NET Framework
Learn about user input in Windows Forms, which has a user input model based on events that are raised while processing related Windows messages.