# C1.Report.FlexReport.ShowMsgBox

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_FlexReport_ShowMsgBox_" data-uid="C1.Report.FlexReport.ShowMsgBox*">ShowMsgBox Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_FlexReport_ShowMsgBox_" data-uid="C1.Report.FlexReport.ShowMsgBox*"></a>
<h4 id="C1_Report_FlexReport_ShowMsgBox_System_String_System_Int32_System_String_" data-uid="C1.Report.FlexReport.ShowMsgBox(System.String,System.Int32,System.String)">ShowMsgBox(string, int, string)</h4>
<div class="markdown level1 summary"><p>Displays a message box in response to the VBScript <code>MsgBox()</code> function.
The default implementation throws <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.notsupportedexception">NotSupportedException</a> since this
class has no UI dependency; UI-capable hosts (e.g. WinForms) should override this
method to show a real dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual int ShowMsgBox(string prompt, int buttons, string title)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function ShowMsgBox(prompt As String, buttons As Integer, title As String) As Integer</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">prompt</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">buttons</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">title</span></td>
      <td></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.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
