Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设您有一个Panel1, 上面有一个Panel2, 部分超出了Panel1's bounds 所以滚动条出现在Panel1.
Panel1
Panel2
如何Panel2在保持Panel1Scrollbars 原样的同时使其不可见?
然后你必须自己做:
panel1.AutoScroll = false; panel1.AutoScrollMinSize = new Size(panel2.Right, panel2.Bottom);