# C1.Win.Input.Base.C1ButtonControl

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Base_C1ButtonControl" data-uid="C1.Win.Input.Base.C1ButtonControl" class="text-break">C1ButtonControl Class
</h1>
  <div class="markdown level0 summary"><p>Implements the basic functionality common to <a class="xref" href="C1.Win.Input.C1Button.html">C1Button</a> and <a class="xref" href="C1.Win.Input.C1SplitButton.html">C1SplitButton</a> controls.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><a class="xref" href="../C1.Win.10/C1.Framework.XViewLight.html">XViewLight</a></div>
    <div class="level5"><a class="xref" href="C1.Win.Input.Base.C1InputControl.html">C1InputControl</a></div>
    <div class="level6"><a class="xref" href="C1.Win.Input.Base.C1ButtonBase.html">C1ButtonBase</a></div>
    <div class="level7"><span class="xref">C1ButtonControl</span></div>
      <div class="level8"><a class="xref" href="C1.Win.Input.C1Button.html">C1Button</a></div>
      <div class="level8"><a class="xref" href="C1.Win.Input.C1SplitButton.html">C1SplitButton</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Framework.IView.html">IView</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibuttoncontrol">IButtonControl</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.Items.IUiaButton.html">IUiaButton</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.Items.BaseInterfaces.IUiaInvokeProvider.html">IUiaInvokeProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.Base.html">C1.Win.Input.Base</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Base_C1ButtonControl_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1ButtonControl : C1ButtonBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportUia, ISupportInitialize, IButtonControl, IUiaButton, IUiaInvokeProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1ButtonControl
    Inherits C1ButtonBase
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportUia, ISupportInitialize, IButtonControl, IUiaButton, IUiaInvokeProvider</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl__ctor_C1_Win_Themes_BaseThemeProvider_" data-uid="C1.Win.Input.Base.C1ButtonControl.#ctor(C1.Win.Themes.BaseThemeProvider)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.-ctor.html#C1_Win_Input_Base_C1ButtonControl__ctor_C1_Win_Themes_BaseThemeProvider_">C1ButtonControl(BaseThemeProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.html">C1ButtonControl</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_AutoSizeMode" data-uid="C1.Win.Input.Base.C1ButtonControl.AutoSizeMode">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.AutoSizeMode.html#C1_Win_Input_Base_C1ButtonControl_AutoSizeMode">AutoSizeMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the mode by which the button automatically resizes itself.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_DialogResult" data-uid="C1.Win.Input.Base.C1ButtonControl.DialogResult">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.DialogResult.html#C1_Win_Input_Base_C1ButtonControl_DialogResult">DialogResult</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that is returned to the parent form when the button is clicked.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_CreateUiaItem_C1_Win_Accessibility_UiaItem_" data-uid="C1.Win.Input.Base.C1ButtonControl.CreateUiaItem(C1.Win.Accessibility.UiaItem)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.CreateUiaItem.html#C1_Win_Input_Base_C1ButtonControl_CreateUiaItem_C1_Win_Accessibility_UiaItem_">CreateUiaItem(UiaItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates UI Automation object of this control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_GetPreferredSize_System_Drawing_Size_" data-uid="C1.Win.Input.Base.C1ButtonControl.GetPreferredSize(System.Drawing.Size)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.GetPreferredSize.html#C1_Win_Input_Base_C1ButtonControl_GetPreferredSize_System_Drawing_Size_">GetPreferredSize(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the size of a rectangular area into which a control can be fitted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_NotifyDefault_System_Boolean_" data-uid="C1.Win.Input.Base.C1ButtonControl.NotifyDefault(System.Boolean)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.NotifyDefault.html#C1_Win_Input_Base_C1ButtonControl_NotifyDefault_System_Boolean_">NotifyDefault(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Notifies the buttin whether it is the default button so that it can adjust its appearance accordingly.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_OnClick_System_EventArgs_" data-uid="C1.Win.Input.Base.C1ButtonControl.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.OnClick.html#C1_Win_Input_Base_C1ButtonControl_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.click">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_OnKeyUp_System_Windows_Forms_KeyEventArgs_" data-uid="C1.Win.Input.Base.C1ButtonControl.OnKeyUp(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.OnKeyUp.html#C1_Win_Input_Base_C1ButtonControl_OnKeyUp_System_Windows_Forms_KeyEventArgs_">OnKeyUp(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.keyup">KeyUp</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_OnMouseUp_System_Windows_Forms_MouseEventArgs_" data-uid="C1.Win.Input.Base.C1ButtonControl.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.OnMouseUp.html#C1_Win_Input_Base_C1ButtonControl_OnMouseUp_System_Windows_Forms_MouseEventArgs_">OnMouseUp(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.OnMouseUp.html#C1_Win_Input_Base_C1ButtonControl_OnMouseUp_System_Windows_Forms_MouseEventArgs_">OnMouseUp(MouseEventArgs)</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_PerformClick" data-uid="C1.Win.Input.Base.C1ButtonControl.PerformClick">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.PerformClick.html#C1_Win_Input_Base_C1ButtonControl_PerformClick">PerformClick()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.click">Click</a> event for the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_ProcessMnemonic_System_Char_" data-uid="C1.Win.Input.Base.C1ButtonControl.ProcessMnemonic(System.Char)">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.ProcessMnemonic.html#C1_Win_Input_Base_C1ButtonControl_ProcessMnemonic_System_Char_">ProcessMnemonic(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes a mnemonic character.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_ToString" data-uid="C1.Win.Input.Base.C1ButtonControl.ToString">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.ToString.html#C1_Win_Input_Base_C1ButtonControl_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Provides information for the button control in String form.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_DoubleClick" data-uid="C1.Win.Input.Base.C1ButtonControl.DoubleClick">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.DoubleClick.html">DoubleClick</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the user double-clicks the button control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_C1ButtonControl_MouseDoubleClick" data-uid="C1.Win.Input.Base.C1ButtonControl.MouseDoubleClick">
          <a class="xref" href="C1.Win.Input.Base.C1ButtonControl.MouseDoubleClick.html">MouseDoubleClick</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the user double-clicks the button control with the mouse.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
