Cannot remove spacing between controls in TableLayoutPanel?

前端 未结 3 1485
眼角桃花
眼角桃花 2021-01-24 11:17

There\'s some spacing between the Buttons I add to my TableLayoutPanel. I removed the border in the Button and set the Margin and Padding to 0 in the Panel. But I c

3条回答
  •  暖寄归人
    2021-01-24 11:36

    I faced the same problem while using different control in TableLayoutPanel

    You can do this

    1. Go to Design View
    2. Click on the properties
    3. GoTo Columns, When you click text box besides Columns, a button (...) appears on extreme right, click it
    4. A pop up window appears, Select AutoSize (Instead of Absolute or Percentage).
    5. In the same window in Show: select Rows and again select Autosize.
    6. Click okay and you are done.

提交回复
热议问题