# C1.WPF.C1MessageBox.Show

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*">Show Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxButton_C1_WPF_C1MessageBoxIcon_System_Action_System_Windows_MessageBoxResult__" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxButton,C1.WPF.C1MessageBoxIcon,System.Action{System.Windows.MessageBoxResult})">Show(string, string, C1MessageBoxButton, C1MessageBoxIcon, Action&lt;MessageBoxResult&gt;)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption, button and icon; and calls back with the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon, Action&lt;MessageBoxResult&gt; callback)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, icon As C1MessageBoxIcon, callback As Action(Of MessageBoxResult))</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a> value that specifies which buttons to display.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a> value that specifies the icon to display.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.messageboxresult">MessageBoxResult</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> which is called with the result of the message box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_Action_System_Windows_MessageBoxResult__" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.Action{System.Windows.MessageBoxResult})">Show(string, Action&lt;MessageBoxResult&gt;)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message and calls back with the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, Action&lt;MessageBoxResult&gt; callback)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, callback As Action(Of MessageBoxResult))</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.messageboxresult">MessageBoxResult</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> which is called with the result of the message box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_System_Action_System_Windows_MessageBoxResult__" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,System.Action{System.Windows.MessageBoxResult})">Show(string, string, Action&lt;MessageBoxResult&gt;)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message and title bar caption; and calls back with the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, Action&lt;MessageBoxResult&gt; callback)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, callback As Action(Of MessageBoxResult))</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.messageboxresult">MessageBoxResult</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> which is called with the result of the message box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxButton_System_Action_System_Windows_MessageBoxResult__" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxButton,System.Action{System.Windows.MessageBoxResult})">Show(string, string, C1MessageBoxButton, Action&lt;MessageBoxResult&gt;)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption and button; and calls back with the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxButton button, Action&lt;MessageBoxResult&gt; callback)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, callback As Action(Of MessageBoxResult))</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a> value that specifies which buttons to display.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.messageboxresult">MessageBoxResult</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> which is called with the result of the message box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxIcon_System_Action_System_Windows_MessageBoxResult__" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxIcon,System.Action{System.Windows.MessageBoxResult})">Show(string, string, C1MessageBoxIcon, Action&lt;MessageBoxResult&gt;)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption and icon; and calls back with the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxIcon icon, Action&lt;MessageBoxResult&gt; callback)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, icon As C1MessageBoxIcon, callback As Action(Of MessageBoxResult))</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a> value that specifies the icon to display.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.messageboxresult">MessageBoxResult</a>&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action&lt;T&gt;</a> which is called with the result of the message box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_" data-uid="C1.WPF.C1MessageBox.Show(System.String)">Show(string)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String)">Show(string, string)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message and title bar caption.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxButton_" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxButton)">Show(string, string, C1MessageBoxButton)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption and button.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxButton button)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a> value that specifies which buttons to display.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxIcon_" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxIcon)">Show(string, string, C1MessageBoxIcon)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption and icon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxIcon icon)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, icon As C1MessageBoxIcon)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a> value that specifies the icon to display.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1MessageBox_Show_" data-uid="C1.WPF.C1MessageBox.Show*"></a>
<h4 id="C1_WPF_C1MessageBox_Show_System_String_System_String_C1_WPF_C1MessageBoxButton_C1_WPF_C1MessageBoxIcon_" data-uid="C1.WPF.C1MessageBox.Show(System.String,System.String,C1.WPF.C1MessageBoxButton,C1.WPF.C1MessageBoxIcon)">Show(string, string, C1MessageBoxButton, C1MessageBoxIcon)</h4>
<div class="markdown level1 summary"><p>Displays a message box that has a message, title bar caption and icon.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Show(message As String, caption As String, button As C1MessageBoxButton, icon As C1MessageBoxIcon)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>The text to display as a message.</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 title bar caption.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxButton.html">C1MessageBoxButton</a> value that specifies which buttons to display.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a></td>
      <td><span class="parametername">icon</span></td>
      <td><p>A <a class="xref" href="C1.WPF.C1MessageBoxIcon.html">C1MessageBoxIcon</a> value that specifies the icon to display.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
