# C1.Report.FlexReport.ShowInputBox

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_FlexReport_ShowInputBox_" data-uid="C1.Report.FlexReport.ShowInputBox*">ShowInputBox Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_FlexReport_ShowInputBox_" data-uid="C1.Report.FlexReport.ShowInputBox*"></a>
<h4 id="C1_Report_FlexReport_ShowInputBox_System_String_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.Report.FlexReport.ShowInputBox(System.String,System.String,System.String,System.Int32,System.Int32)">ShowInputBox(string, string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Displays an input box in response to the VBScript <code>InputBox()</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 string ShowInputBox(string prompt, string title, string defaultValue, int xPos, int yPos)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function ShowInputBox(prompt As String, title As String, defaultValue As String, xPos As Integer, yPos As Integer) 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">prompt</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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">defaultValue</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">xPos</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">yPos</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.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
