C# 如何在windows窗体ReportViewer中捕获滚动事件
我在窗体上有reportViewer控件。当reportViewer向上或向下滚动时,我不想在窗体上执行某些操作:C# 如何在windows窗体ReportViewer中捕获滚动事件,c#,winforms,scroll,reportviewer,C#,Winforms,Scroll,Reportviewer,我在窗体上有reportViewer控件。当reportViewer向上或向下滚动时,我不想在窗体上执行某些操作: this.reportViewer1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.reportViewer1_Scroll); private void reportViewer1_Scroll(object sender, ScrollEventArgs e) {
this.reportViewer1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.reportViewer1_Scroll);
private void reportViewer1_Scroll(object sender, ScrollEventArgs e)
{
//call method
}
但它不起作用。如何修复它?滚动事件在控件中似乎不可访问。我能得到的最接近的是页面导航事件loviji: 这是.NETFramework4.x的一个bug,并报告给MicrosoftConnect () 附言: 我已经在msdn开发者论坛上发布了这篇文章, Microsoft特遣队人员(Bob)已验证此问题,并且该问题已存在。 因此,我向Microsoft Connect报告了这一情况 以及Microsoft Connect在2016/12/07 22:29的回答 “是的,ReportViewer的滚动条现在不工作,这是Winforms ScrollableControl的一个已知错误。我们正在调查。”请参阅