c# - 如何手动滚动面板?

标签 c# .net winforms

我想在 Panel.AutoScroll 为真时使用可用的相同功能,但滚动条不可见。

为此,我需要知道如何使用代码中的函数向左/右上/下滚动。

最佳答案

您应该能够使用组件的 VerticalScroll 和 Horizo​​ntalScroll 属性:

c.HorizontalScroll.Value += 100;
c.VerticalScroll.Value = c.VerticalScroll.Maximum;

关于c# - 如何手动滚动面板?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/262534/

相关文章:

c# - 未经客户端身份验证方案 NTLM 授权

c# - 如何删除对象而不在 EF 中检索它

c# - Azure Web作业失败 : Could not load file or assembly

c# - 只打印一页

c# - String.Split() 返回空值

c# - 在哪里可以提交对 C# 语言新功能的请求?

c# - SendGrid 不是属性类

c# - ReSharper 如何知道此返回类型永远不会为空?

winforms - 在 Winforms 中右对齐 DataGridView 列标题

c# - 自定义控件中的双缓冲子控件(C#)