title: Set appropriate initial height for custom task pane in VSTO Outlook Add-in
body: <p>I have an VSTO Outlook Add-in in which I create a custom task pane and I assign a usercontrol to it.</p>
  <p>How can I set the initial height of the custom task pane in order to be device-independent, I mean,
  that works independently of the screen resolution?</p>
  <p>I have observed that if I set a fixed value for it, for example, ctp.Height = 130, it works on some screen resolutions but not in others, I mean, it seems height is not kept between different screen resolution. In lower screen resolutions, the height is bigger, and in higher screen resolutions, the height is smaller. Why is it happening? and how to solve it?</p>