简体   繁体   English

C#Tablelayoutpanel隐藏水平栏

[英]C# Tablelayoutpanel Hide horizontalbar

I try to remove the horizontalbar of my tablelayoutpanel, and from the website, I found other people's solution to use padding. 我尝试删除tablelayoutpanel的horizo​​ntalbar,然后从网站上发现其他人使用填充的解决方案。

 private void Form2_Load(object sender, EventArgs e)
  {
     Padding p = TPSS_Signals.Padding;
        TPSS_Signals.Padding = new Padding(0, 0, vertScrollWidth, 0);
   }  

But this solution doesn't make any change on my tablelayoutpanel TPSS_Signals Could you please help me to find the reason? 但是此解决方案不会对我的tablelayoutpanel TPSS_Signals进行任何更改。能否请我帮忙查找原因?

Thank you Vidya, actually my code is from Bavarious in your link. 谢谢Vidya,实际上我的代码来自您链接中的Bavarious。 But it doesn't work for my program 但这不适用于我的程序

The link can help you. 链接可以为您提供帮助。 There are 4-5 answers listed in the page and each of it has been marked helpful. 该页面列出了4-5个答案,每个答案都被标记为有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM