# C1.Win.TouchToolKit.C1Zoom.ShowPanWindow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*">ShowPanWindow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow">ShowPanWindow()</h4>
<div class="markdown level1 summary"><p>Shows the pan window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Form ShowPanWindow()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPanWindow() As Form</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> value that represents the pan window.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.
</p>
<p>
If pan window has been shown to call this method will do nothing.
</p>
<p>
Pan window will move as the owner form move if it is showed by this method.
</p>
<p>
Pan window's <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.startposition">StartPosition</a> is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.formstartposition#system-windows-forms-formstartposition-manual">Manual</a>,
and its <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.size">Size</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.location">Location</a> depends on owner form if the pan window is showed by this method.
</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_examples">Examples</h5>
<p>
  The following code example shows how to use this method.
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)
		Me.Controls.Add(_showPanWindowButton)
	End Sub
End Class</code></pre>



<a id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow(System.Windows.Forms.FormStartPosition)">ShowPanWindow(FormStartPosition)</h4>
<div class="markdown level1 summary"><p>Shows the pan window with the specified start position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Form ShowPanWindow(FormStartPosition startPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPanWindow(startPosition As FormStartPosition) As Form</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.formstartposition">FormStartPosition</a></td>
      <td><span class="parametername">startPosition</span></td>
      <td><p>The start position of pan window.</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.form">Form</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> value that represents the pan window.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.
</p>
<p>
If pan window has been shown to call this method will do nothing.
</p>
<p>
Pan window will not move as the owner form move if it is showed by this method.
</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition__examples">Examples</h5>
<p>
  The following code example shows how to use this method.
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow.html#C1_Win_TouchToolKit_C1Zoom_ShowPanWindow">ShowPanWindow()</a> method. 
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)
		Me.Controls.Add(_showPanWindowButton)
	End Sub
End Class</code></pre>



<a id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition_System_Drawing_Size_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow(System.Windows.Forms.FormStartPosition,System.Drawing.Size)">ShowPanWindow(FormStartPosition, Size)</h4>
<div class="markdown level1 summary"><p>Shows the pan window with the specified start position and size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Form ShowPanWindow(FormStartPosition startPosition, Size size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPanWindow(startPosition As FormStartPosition, size As Size) As Form</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.formstartposition">FormStartPosition</a></td>
      <td><span class="parametername">startPosition</span></td>
      <td><p>The start position of pan window.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The size of pan window.</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.form">Form</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> value that represents the pan window.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.
</p>
<p>
If pan window has been shown to call this method will do nothing.
</p>
<p>
Pan window will not move as the owner form move if it is showed by this method.
</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Windows_Forms_FormStartPosition_System_Drawing_Size__examples">Examples</h5>
<p>
  The following code example shows how to use this method.
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow.html#C1_Win_TouchToolKit_C1Zoom_ShowPanWindow">ShowPanWindow()</a> method. 
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)
		Me.Controls.Add(_showPanWindowButton)
	End Sub
End Class</code></pre>



<a id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow(System.Drawing.Point)">ShowPanWindow(Point)</h4>
<div class="markdown level1 summary"><p>Shows the pan window with the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Form ShowPanWindow(Point location)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPanWindow(location As Point) As Form</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.drawing.point">Point</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The location of pan window.</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.form">Form</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> value that represents the pan window.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.
</p>
<p>
If pan window has been shown to call this method will do nothing.
</p>
<p>
Pan window will not move as the owner form move if it is showed by this method.
</p>
<p>
Pan window's <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.startposition">StartPosition</a> is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.formstartposition#system-windows-forms-formstartposition-manual">Manual</a> if it is showed by this method.
</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point__examples">Examples</h5>
<p>
  The following code example shows how to use this method.
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow.html#C1_Win_TouchToolKit_C1Zoom_ShowPanWindow">ShowPanWindow()</a> method. 
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)
		Me.Controls.Add(_showPanWindowButton)
	End Sub
End Class</code></pre>



<a id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point_System_Drawing_Size_" data-uid="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow(System.Drawing.Point,System.Drawing.Size)">ShowPanWindow(Point, Size)</h4>
<div class="markdown level1 summary"><p>Shows the pan window with the specified location and size.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Form ShowPanWindow(Point location, Size size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPanWindow(location As Point, size As Size) As Form</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.drawing.point">Point</a></td>
      <td><span class="parametername">location</span></td>
      <td><p>The location of pan window.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The size of pan window.</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.form">Form</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form">Form</a> value that represents the pan window.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.
</p>
<p>
If pan window has been shown to call this method will do nothing.
</p>
<p>
Pan window will not move as the owner form move if it is showed by this method.
</p>
<p>
Pan window's <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.startposition">StartPosition</a> is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.formstartposition#system-windows-forms-formstartposition-manual">Manual</a> if it is showed by this method.
</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ShowPanWindow_System_Drawing_Point_System_Drawing_Size__examples">Examples</h5>
<p>
  The following code example shows how to use this method.
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ShowPanWindow.html#C1_Win_TouchToolKit_C1Zoom_ShowPanWindow">ShowPanWindow()</a> method. 
</p>
<pre><code class="lang-csharp">public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)
		Me.Controls.Add(_showPanWindowButton)
	End Sub
End Class</code></pre>

</div>
