Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Set appropriate initial height for custom task pane in VSTO Outlook Add-in
I have an VSTO Outlook Add-in in which I create a custom task pane and I assign a usercontrol to it.
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?
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?
Please help!
Microsoft 365 and Office | Development | Other
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs