How do I set the size of the visible area of a form, minus heading and borders?

前端 未结 3 1003
无人共我
无人共我 2020-12-03 13:41

I would like to set my form to be exactly 300*300 excluding heading and borders.

If I use Size property, it does include these values.

Is there any way how t

3条回答
  •  广开言路
    2020-12-03 14:17

    There is workaround to set proper Size by designer tool: 1. Set FormBorderSize to "None". 2. Set prefered Size (e.g. "300; 300"). 3. Set FormBorderSize to prefered border (additional needed space will be added to Size property automaticly).

提交回复
热议问题