TableLayoutPanel displays vertical scroll

前端 未结 5 908
有刺的猬
有刺的猬 2020-12-05 05:49

I have TableLayoutPanel for dynamic creation of controls with AutoScroll = true. It\'s work fine when I add new controls. But when I remove and all controls are visible, ver

5条回答
  •  一生所求
    2020-12-05 06:29

    One of the easiest and funniest solution is to just disable and enable tableLayoutPanel1.AutoScroll

    In your Deleting procedure code add at the end these codes :

        tableLayoutPanel1.AutoScroll = False
        tableLayoutPanel1.AutoScroll = True
    

提交回复
热议问题