32 lines
1.9 KiB
XML
32 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Type Name="KeyPressEventHandler" FullName="System.Windows.Forms.KeyPressEventHandler">
|
|
<TypeSignature Language="C#" Value="public delegate void KeyPressEventHandler(object sender, KeyPressEventArgs e);" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>System.Windows.Forms</AssemblyName>
|
|
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
|
</AssemblyInfo>
|
|
<Base>
|
|
<BaseTypeName>System.Delegate</BaseTypeName>
|
|
</Base>
|
|
<Parameters>
|
|
<Parameter Name="sender" Type="System.Object" />
|
|
<Parameter Name="e" Type="System.Windows.Forms.KeyPressEventArgs" />
|
|
</Parameters>
|
|
<ReturnValue>
|
|
<ReturnType>System.Void</ReturnType>
|
|
</ReturnValue>
|
|
<Docs>
|
|
<param name="sender">To be added.</param>
|
|
<param name="e">To be added.</param>
|
|
<remarks>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Set <see cref="P:System.Windows.Forms.KeyPressEventArgs.Handled" /> to true to cancel the KeyPress event. This keeps the control from processing the key press.</para>
|
|
<para>When you create a <see cref="T:System.Windows.Forms.KeyPressEventHandler" /> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about handling events with delegates, see <format type="text/html"><a href="D98FD58B-FA4F-4598-8378-ADDF4355A115">[<topic://cpconEventsDelegates>]</a></format>.</para>
|
|
</remarks>
|
|
<summary>
|
|
<attribution license="cc4" from="Microsoft" modified="false" />
|
|
<para>Represents the method that will handle the <see cref="E:System.Windows.Forms.Control.KeyPress" /> event of a <see cref="T:System.Windows.Forms.Control" />.</para>
|
|
</summary>
|
|
</Docs>
|
|
</Type> |