title: Show Form in Center of Panel of Parent form
body: <p><strong>Description</strong> I have 2 Form</p>
  
  <ol>
  <li>FormMain   (Main Form with Maximized screen)</li>
  <li>FormCats    (small form which i want to display in center of Panel of FormMain)</li>
  </ol>
  
  <p><strong>What i tried</strong></p>
  
  <pre><code> int X = Panel2.width + ((panel3.width/2) - FormCats.width -2);
  </code></pre>
  
  <blockquote>
    <p>and assign this X location to FormCat</p>
  </blockquote>
  
  <p><strong>Problem</strong>
  This is gud to get X location but on different screen resolutions its not working.
  <a href="https://i.stack.imgur.com/zb3YC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zb3YC.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/HNwnL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HNwnL.png" alt="enter image description here"></a></p>