# C1.Win.C1Editor.UICustomization.IMessageBox.Show

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_UICustomization_IMessageBox_Show_" data-uid="C1.Win.C1Editor.UICustomization.IMessageBox.Show*">Show Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_UICustomization_IMessageBox_Show_" data-uid="C1.Win.C1Editor.UICustomization.IMessageBox.Show*"></a>
<h4 id="C1_Win_C1Editor_UICustomization_IMessageBox_Show_System_Windows_Forms_IWin32Window_System_String_System_String_System_Windows_Forms_MessageBoxButtons_System_Windows_Forms_MessageBoxIcon_" data-uid="C1.Win.C1Editor.UICustomization.IMessageBox.Show(System.Windows.Forms.IWin32Window,System.String,System.String,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)">Show(IWin32Window, string, string, MessageBoxButtons, MessageBoxIcon)</h4>
<div class="markdown level1 summary"><p>Shows the dialog window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Show(owner As IWin32Window, text As String, caption As String, buttons As MessageBoxButtons, icon As MessageBoxIcon) As DialogResult</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.iwin32window">IWin32Window</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>Any object that implements <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a> that represents the top-level window that will own the modal dialog box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text to display in the message box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td><p>The text to display in the title bar of the message box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.messageboxbuttons">MessageBoxButtons</a></td>
      <td><span class="parametername">buttons</span></td>
      <td><p>One of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.messageboxbuttons">MessageBoxButtons</a> values that specifies which buttons to display in the message box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.messageboxicon">MessageBoxIcon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>One of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.messageboxicon">MessageBoxIcon</a> values that specifies which icon to display in the message box.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.dialogresult">DialogResult</a></td>
      <td><p>One of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.dialogresult">DialogResult</a> values.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
