NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PictureBox KeyPress Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the KeyPress event.

[Visual Basic]
Private Sub PictureBoxName_KeyPress( _
   ByVal sender As Object, _
   ByVal e As KeyPressEventArgs _
)
[C#]
private void PictureBoxName_KeyPress(
   object sender,
   KeyPressEventArgs e
);
[C++]
private: void PictureBoxName_KeyPress(
   Object* sender,
   KeyPressEventArgs* e
);
[JScript]
private PictureBoxName_KeyPress(
   sender : Object,
   e : KeyPressEventArgs
);

Parameters

sender
The source of the event.
e
A KeyPressEventArgs that contains the event data. The following KeyPressEventArgs properties provide information specific to this event.
Property Description
Handled
Gets or sets a value indicating whether the System.WinForms.Control.KeyPress event was handled.
KeyChar
Gets the character corresponding to the key pressed.

See Also

PictureBox Class | PictureBox MembersTopic | System.WinForms Namespace