# C1.Win.C1Win7Pack.C1TaskDialog.Show

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Win7Pack_C1TaskDialog_Show_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show*">Show Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Win7Pack_C1TaskDialog_Show_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show*"></a>
<h4 id="C1_Win_C1Win7Pack_C1TaskDialog_Show" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show">Show()</h4>
<div class="markdown level1 summary"><p>Creates and shows a task dialog with a default owner.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TaskDialogResult Show()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Show() As TaskDialogResult</code></pre>
</div>
<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="C1.Win.C1Win7Pack.TaskDialogResult.html">TaskDialogResult</a></td>
      <td><p>The task dialog result (see also the <a class="xref" href="C1.Win.C1Win7Pack.C1TaskDialog.DialogResult.html#C1_Win_C1Win7Pack_C1TaskDialog_DialogResult">DialogResult</a> property).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_C1Win7Pack_C1TaskDialog_Show_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show*"></a>
<h4 id="C1_Win_C1Win7Pack_C1TaskDialog_Show_System_Windows_Forms_IWin32Window_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show(System.Windows.Forms.IWin32Window)">Show(IWin32Window)</h4>
<div class="markdown level1 summary"><p>Creates and shows a task dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TaskDialogResult Show(IWin32Window owner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Show(owner As IWin32Window) As TaskDialogResult</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>An implementation of IWin32Window that will own the task dialog.</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="C1.Win.C1Win7Pack.TaskDialogResult.html">TaskDialogResult</a></td>
      <td><p>The task dialog result (see also the <a class="xref" href="C1.Win.C1Win7Pack.C1TaskDialog.DialogResult.html#C1_Win_C1Win7Pack_C1TaskDialog_DialogResult">DialogResult</a> property).</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Win7Pack_C1TaskDialog_Show_System_Windows_Forms_IWin32Window__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>You can use the owner parameter to specify a particular object, which implements the
IWin32Window interface, that will serve as the dialog box's top-level window and owner.
A task dialog is a modal dialog box, which means no input (keyboard or mouse click) can
occur except to objects on the modal form. The program must hide or close a modal form
(typically in response to some user action) before input to another form can occur.</p>
</div>


<a id="C1_Win_C1Win7Pack_C1TaskDialog_Show_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show*"></a>
<h4 id="C1_Win_C1Win7Pack_C1TaskDialog_Show_System_Boolean_" data-uid="C1.Win.C1Win7Pack.C1TaskDialog.Show(System.Boolean)">Show(bool)</h4>
<div class="markdown level1 summary"><p>Creates and shows a task dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TaskDialogResult Show(bool dialogOwnedByActiveWindow)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Show(dialogOwnedByActiveWindow As Boolean) As TaskDialogResult</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.boolean">bool</a></td>
      <td><span class="parametername">dialogOwnedByActiveWindow</span></td>
      <td><p>If True, the active window attached to the calling
thread's message queue will be the owner for the task dialog.</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="C1.Win.C1Win7Pack.TaskDialogResult.html">TaskDialogResult</a></td>
      <td><p>The task dialog result (see also the <a class="xref" href="C1.Win.C1Win7Pack.C1TaskDialog.DialogResult.html#C1_Win_C1Win7Pack_C1TaskDialog_DialogResult">DialogResult</a> property).</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Win7Pack_C1TaskDialog_Show_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>You can pass False to this method to show the task dialog as an autonomous window.</p>
</div>
</div>
