This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com . Thanks!
PictureBox KeyDown Event
[To be supplied.]
The following declaration shows the syntax for a method that handles the KeyDown event.
[Visual Basic]
Private Sub PictureBoxName_ KeyDown( _
ByVal sender As Object, _
ByVal e As KeyEventArgs _
)
[C#]
private void PictureBoxName_ KeyDown(
object sender ,
KeyEventArgs e
);
[C++]
private: void PictureBoxName_ KeyDown(
Object* sender ,
KeyEventArgs* e
);
[JScript]
private PictureBoxName_ KeyDown(
sender : Object,
e : KeyEventArgs
);
Parameters
sender
The source of the event.
e
A KeyEventArgs that contains the event data. The following KeyEventArgs properties provide information specific to this event.
Property
Description
Alt
Gets a value indicating whether the ALT key was pressed.
Control
Gets a value indicating whether the CTRL key was pressed.
Handled
Gets or sets a value indicating whether the event was handled.
KeyCode
Gets the keyboard code for a System.WinForms.Control.KeyDown or System.WinForms.Control.KeyUp event.
KeyData
Gets the key data for a System.WinForms.Control.KeyDown or System.WinForms.Control.KeyUp event.
Modifiers
Gets the modifier flags for a System.WinForms.Control.KeyDown or System.WinForms.Control.KeyUp event. This indicates which modifier keys (CTRL, SHIFT, and/or ALT) were pressed.
Shift
Gets a value indicating whether the SHIFT key was pressed.
See Also
PictureBox Class | PictureBox MembersTopic | System.WinForms Namespace