# C1.Framework.DropDownFormBase.PrepareDropDownLocation

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_DropDownFormBase_PrepareDropDownLocation_" data-uid="C1.Framework.DropDownFormBase.PrepareDropDownLocation*">PrepareDropDownLocation Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_DropDownFormBase_PrepareDropDownLocation_" data-uid="C1.Framework.DropDownFormBase.PrepareDropDownLocation*"></a>
<h4 id="C1_Framework_DropDownFormBase_PrepareDropDownLocation_System_Int32__System_Int32__System_Int32__System_Int32__System_Drawing_Rectangle_" data-uid="C1.Framework.DropDownFormBase.PrepareDropDownLocation(System.Int32@,System.Int32@,System.Int32@,System.Int32@,System.Drawing.Rectangle)">PrepareDropDownLocation(ref int, ref int, ref int, ref int, Rectangle)</h4>
<div class="markdown level1 summary"><p>Prepares location of drop down form.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual bool PrepareDropDownLocation(ref int x, ref int y, ref int width, ref int height, Rectangle ownerBounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function PrepareDropDownLocation(ByRef x As Integer, ByRef y As Integer, ByRef width As Integer, ByRef height As Integer, ownerBounds As Rectangle) As Boolean</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.int32">int</a></td>
      <td><span class="parametername">x</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">y</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">width</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">height</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">ownerBounds</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.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_DropDownFormBase_PrepareDropDownLocation_System_Int32__System_Int32__System_Int32__System_Int32__System_Drawing_Rectangle__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The overridden method may return 'true' to avoid further processing.</p>
</div>
</div>
