# C1.Win.Ribbon.C1Ribbon.ShowContextMenu

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu*">ShowContextMenu Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu*"></a>
<h4 id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_System_Windows_Forms_Control_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu(System.Windows.Forms.Control)">ShowContextMenu(Control)</h4>
<div class="markdown level1 summary"><p>Displays the contextual menu at the center of the specified control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShowContextMenu(Control control)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShowContextMenu(control As Control)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>The control used for positioning of the context menu.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu*"></a>
<h4 id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_System_Drawing_Point_C1_Win_Ribbon_RibbonItem_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu(System.Drawing.Point,C1.Win.Ribbon.RibbonItem)">ShowContextMenu(Point, RibbonItem)</h4>
<div class="markdown level1 summary"><p>Displays the contextual menu at the specified screen position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShowContextMenu(Point pt, RibbonItem item = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShowContextMenu(pt As Point, Optional item As RibbonItem = Nothing)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>The upper-left (upper-right for RTL mode) corner of the contextual menu in screen coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>Specifies the ribbon item for which the context menu is shown, this parameter uses when the item is on a dropdown form.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu*"></a>
<h4 id="C1_Win_Ribbon_C1Ribbon_ShowContextMenu_System_Drawing_Point_System_Windows_Forms_LeftRightAlignment_C1_Win_Ribbon_RibbonItem_" data-uid="C1.Win.Ribbon.C1Ribbon.ShowContextMenu(System.Drawing.Point,System.Windows.Forms.LeftRightAlignment,C1.Win.Ribbon.RibbonItem)">ShowContextMenu(Point, LeftRightAlignment, RibbonItem)</h4>
<div class="markdown level1 summary"><p>Displays the contextual menu at the specified screen position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShowContextMenu(Point pt, LeftRightAlignment alignment, RibbonItem item = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShowContextMenu(pt As Point, alignment As LeftRightAlignment, Optional item As RibbonItem = Nothing)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>The upper-left or upper-right corner of the contextual menu in screen coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.leftrightalignment">LeftRightAlignment</a></td>
      <td><span class="parametername">alignment</span></td>
      <td><p>Specifies the alignment of the control relative to the pos parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>Specifies the ribbon item for which the context menu is shown, this parameter uses when the item is on a dropdown form.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
