How to get the size of a Winforms Form titlebar height?

后端 未结 5 515
独厮守ぢ
独厮守ぢ 2021-02-01 01:59

So if it\'s toolwindow or a minimizable form, I want to be able to get its height programmatically.

Is this possible? If so how?

5条回答
  •  情话喂你
    2021-02-01 02:33

    This will get you the TitleBarsize:

    form.ClientRectangle.Height - form.Height;
    

提交回复
热议问题