﻿<?xml version="1.0" encoding="utf-8"?><Type Name="Button" FullName="System.Windows.Forms.Button"><TypeSignature Language="C#" Value="public class Button : System.Windows.Forms.ButtonBase, System.Windows.Forms.IButtonControl" /><AssemblyInfo><AssemblyName>System.Windows.Forms</AssemblyName><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Windows.Forms.ButtonBase</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Windows.Forms.IButtonControl</InterfaceName></Interface></Interfaces><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Windows.Forms.Button" /> can be clicked by using the mouse, ENTER key, or SPACEBAR if the button has focus.</para><para>Set the <see cref="P:System.Windows.Forms.Form.AcceptButton" /> or <see cref="P:System.Windows.Forms.Form.CancelButton" /> property of a <see cref="T:System.Windows.Forms.Form" /> to allow users to click a button by pressing the ENTER or ESC keys even if the button does not have focus. This gives the form the behavior of a dialog box.</para><para>When you display a form using the <see cref="M:System.Windows.Forms.Form.ShowDialog" /> method, you can use the <see cref="P:System.Windows.Forms.Button.DialogResult" /> property of a button to specify the return value of <see cref="M:System.Windows.Forms.Form.ShowDialog" />.</para><para>You can change the button's appearance. For example, to make it appear flat for a Web look, set the <see cref="P:System.Windows.Forms.ButtonBase.FlatStyle" /> property to <see cref="F:System.Windows.Forms.FlatStyle.Flat" />. The <see cref="P:System.Windows.Forms.ButtonBase.FlatStyle" /> property can also be set to <see cref="F:System.Windows.Forms.FlatStyle.Popup" />, which appears flat until the mouse pointer passes over the button; then the button takes on the standard Windows button appearance.</para><block subset="none" type="note"><para>If the control that has focus accepts and processes the ENTER key press, the <see cref="T:System.Windows.Forms.Button" /> does not process it. For example, if a multiline <see cref="T:System.Windows.Forms.TextBox" /> or another button has focus, that control processes the ENTER key press instead of the accept button.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents a Windows button control.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public Button ();" /><MemberType>Constructor</MemberType><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>By default the <see cref="T:System.Windows.Forms.Button" /> displays no caption. To specify the caption text, set the <see cref="P:System.Windows.Forms.Control.Text" /> property.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Windows.Forms.Button" /> class.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="AutoSizeMode"><MemberSignature Language="C#" Value="public System.Windows.Forms.AutoSizeMode AutoSizeMode { set; get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(System.Windows.Forms.AutoSizeMode.GrowOnly)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Localizable(true)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Browsable(true)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Windows.Forms.AutoSizeMode</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the mode by which the <see cref="T:System.Windows.Forms.Button" /> automatically resizes itself.</para></summary></Docs></Member><Member MemberName="CreateParams"><MemberSignature Language="C#" Value="protected override System.Windows.Forms.CreateParams CreateParams { get; }" /><MemberType>Property</MemberType><ReturnValue><ReturnType>System.Windows.Forms.CreateParams</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Inheriting classes can override this property to add extra functionality, but must first call the <see cref="T:System.Windows.Forms.CreateParams" /> constructor on the base class to verify that the control continues to work correctly.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a <see cref="T:System.Windows.Forms.CreateParams" /> on the base class when creating a window. </para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DialogResult"><MemberSignature Language="C#" Value="public virtual System.Windows.Forms.DialogResult DialogResult { set; get; }" /><MemberType>Property</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(System.Windows.Forms.DialogResult.None)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Windows.Forms.DialogResult</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the <see cref="T:System.Windows.Forms.DialogResult" /> for this property is set to anything other than None, and if the parent form was displayed through the <see cref="M:System.Windows.Forms.Form.ShowDialog" /> method, clicking the button closes the parent form without your having to hook up any events. The form's <see cref="P:System.Windows.Forms.Form.DialogResult" /> property is then set to the <see cref="T:System.Windows.Forms.DialogResult" /> of the button when the button is clicked.</para><para>For example, to create a "Yes/No/Cancel" dialog box, simply add three buttons and set their <see cref="T:System.Windows.Forms.DialogResult" /> properties to Yes, No, and Cancel.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a value that is returned to the parent form when the button is clicked.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="DoubleClick"><MemberSignature Language="C#" Value="public event EventHandler DoubleClick;" /><MemberType>Event</MemberType><Attributes><Attribute><AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Browsable(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.EventHandler</ReturnType></ReturnValue><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>By default, the <see cref="F:System.Windows.Forms.ControlStyles.StandardClick" /> and <see cref="F:System.Windows.Forms.ControlStyles.StandardDoubleClick" /> style bits are set to false for the <see cref="T:System.Windows.Forms.Button" /> control, and the <see cref="E:System.Windows.Forms.Button.DoubleClick" /> event is not raised.  </para><para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Occurs when the user double-clicks the <see cref="T:System.Windows.Forms.Button" /> control.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="MouseDoubleClick"><MemberSignature Language="C#" Value="public event System.Windows.Forms.MouseEventHandler MouseDoubleClick;" /><MemberType>Event</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Browsable(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Windows.Forms.MouseEventHandler</ReturnType></ReturnValue><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>By default, the <see cref="F:System.Windows.Forms.ControlStyles.StandardClick" /> and <see cref="F:System.Windows.Forms.ControlStyles.StandardDoubleClick" /> style bits are set to false for the <see cref="T:System.Windows.Forms.Button" /> control, and the <see cref="E:System.Windows.Forms.Button.MouseDoubleClick" /> event is not raised.</para><para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Occurs when the user double-clicks the <see cref="T:System.Windows.Forms.Button" /> control with the mouse.</para></summary></Docs></Member><Member MemberName="NotifyDefault"><MemberSignature Language="C#" Value="public virtual void NotifyDefault (bool value);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="value" Type="System.Boolean" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is called by the parent form to notify the <see cref="T:System.Windows.Forms.Button" /> that it should be set as the default button and to allow it to adjust its appearance accordingly. Typically, a button that is the default button for a form has a thicker border than other buttons on the form.</para><para>Calling the <see cref="M:System.Windows.Forms.Button.NotifyDefault(System.Boolean)" /> method only draws the button as a default button; it does not change its behavior. To make the button behave like a default button, it must be assigned to the <see cref="P:System.Windows.Forms.Form.AcceptButton" /> property of the <see cref="T:System.Windows.Forms.Form" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Notifies the <see cref="T:System.Windows.Forms.Button" /> whether it is the default button so that it can adjust its appearance accordingly.</para></summary><param name="value"><attribution license="cc4" from="Microsoft" modified="false" />true if the button is to have the appearance of the default button; otherwise, false. </param></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnClick"><MemberSignature Language="C#" Value="protected override void OnClick (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><param name="e">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnFontChanged"><MemberSignature Language="C#" Value="protected override void OnFontChanged (EventArgs e);" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="f2adaf01-1ed1-42e1-8c31-8d467e7e0ee2">Raising an Event</a></format>.</para><para>The <see cref="M:System.Windows.Forms.Button.OnFontChanged(System.EventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Raises the <see cref="E:System.Windows.Forms.Control.FontChanged" /> event.</para></summary><param name="e"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.EventArgs" /> that contains the event data. </param></Docs></Member><Member MemberName="OnMouseEnter"><MemberSignature Language="C#" Value="protected override void OnMouseEnter (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><summary>To be added.</summary><remarks>To be added.</remarks><since version=".NET 2.0" /><param name="e"><attribution license="cc4" from="Microsoft" modified="false" />Provides information for the event.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnMouseLeave"><MemberSignature Language="C#" Value="protected override void OnMouseLeave (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><summary>To be added.</summary><remarks>To be added.</remarks><since version=".NET 2.0" /><param name="e"><attribution license="cc4" from="Microsoft" modified="false" />Provides missing information for the event.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnMouseUp"><MemberSignature Language="C#" Value="protected override void OnMouseUp (System.Windows.Forms.MouseEventArgs mevent);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="mevent" Type="System.Windows.Forms.MouseEventArgs" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="f2adaf01-1ed1-42e1-8c31-8d467e7e0ee2">Raising an Event</a></format>.</para><para>The <see cref="M:System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Raises the <see cref="M:System.Windows.Forms.ButtonBase.OnMouseUp(System.Windows.Forms.MouseEventArgs)" /> event.</para></summary><param name="mevent"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data. </param></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="OnTextChanged"><MemberSignature Language="C#" Value="protected override void OnTextChanged (EventArgs e);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="e" Type="System.EventArgs" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="f2adaf01-1ed1-42e1-8c31-8d467e7e0ee2">Raising an Event</a></format>.</para><para>The <see cref="M:System.Windows.Forms.Button.OnTextChanged(System.EventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Raises the <see cref="E:System.Windows.Forms.Control.TextChanged" /> event. </para></summary><param name="e"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.EventArgs" /> that contains the event data.</param></Docs><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="PerformClick"><MemberSignature Language="C#" Value="public void PerformClick ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method can be called to raise the <see cref="E:System.Windows.Forms.Control.Click" /> event.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Generates a <see cref="E:System.Windows.Forms.Control.Click" /> event for a button.</para></summary></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ProcessMnemonic"><MemberSignature Language="C#" Value="protected override bool ProcessMnemonic (char charCode);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="charCode" Type="System.Char" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When overriding <see cref="M:System.Windows.Forms.Button.ProcessMnemonic(System.Char)" /> in a derived class, be sure to call the base class's <see cref="M:System.Windows.Forms.Button.ProcessMnemonic(System.Char)" /> to ensure that basic functionality remains unchanged.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Processes a mnemonic character. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the mnemonic was processed; otherwise, false.</para></returns><param name="charCode"><attribution license="cc4" from="Microsoft" modified="false" />The mnemonic character entered. </param></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member><Member MemberName="WndProc"><MemberSignature Language="C#" Value="protected override void WndProc (ref System.Windows.Forms.Message m);" /><MemberType>Method</MemberType><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="m" Type="System.Windows.Forms.Message&amp;" RefType="ref" /></Parameters><Docs><param name="m">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo></Member></Members><Attributes><Attribute><AttributeName>System.ComponentModel.Designer("System.Windows.Forms.Design.ButtonBaseDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)</AttributeName></Attribute></Attributes></Type>