# FarPoint.Win.PopupWindowHelper.ShowPopup

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_PopupWindowHelper_ShowPopup_" data-uid="FarPoint.Win.PopupWindowHelper.ShowPopup*">ShowPopup Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_PopupWindowHelper_ShowPopup_" data-uid="FarPoint.Win.PopupWindowHelper.ShowPopup*"></a>
<h4 id="FarPoint_Win_PopupWindowHelper_ShowPopup_System_Windows_Forms_Control_System_Windows_Forms_Form_System_Drawing_Point_" data-uid="FarPoint.Win.PopupWindowHelper.ShowPopup(System.Windows.Forms.Control,System.Windows.Forms.Form,System.Drawing.Point)">ShowPopup(Control, Form, Point)</h4>
<div class="markdown level1 summary"><p>Shows the specified Form as a popup window, keeping the
Owner's title bar active and preparing to cancel the popup
should the user click anywhere outside the popup window.</p>
<p>Typical code to use this message is as follows:</p><pre><code class="lang-csharp">frmPopup popup = new frmPopup();
                                                      Point location = this.PointToScreen(new Point(button1.Left, button1.Bottom));
                                                      popupHelper.ShowPopup(this, popup, location);</code></pre><p>Put as much initialization code as possible
into the popup form's constructor, rather than the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.load">Load</a>
event as this will improve the visual appearance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShowPopup(Control owner, Form popup, Point location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShowPopup(owner As Control, popup As Form, location As Point)</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">owner</span></td>
      <td><p>Main form which owns the popup</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a></td>
      <td><span class="parametername">popup</span></td>
      <td><p>Window to show as a popup</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>Location relative to the screen to show the popup at.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
