简体   繁体   中英

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.

 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?

Thank you Vidya, actually my code is from Bavarious in your link. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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