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.
我有一个组框,我在其中添加了一个面板。面板包含 3 个标签。预期的功能是随着标签上的文本增加,面板显示滚动条。但是,它没有发生。我已经尝试了很多,在组框内外都有面板。设置标签的 MaxSize 和设置 AutoSize 但都是徒劳的。Ps AutoScroll 属性设置为 true。
请提出任何出路。
您需要做的就是将面板的AutoScroll属性设置为true.
AutoScroll
true
myPanel.AutoScroll = true;
我希望这有帮助。
扩展:你似乎持怀疑态度。这是您想要的表格的图像。我所做的就是做上面的事情。