ReportViewer control scroll event not fired

天大地大妈咪最大 提交于 2019-12-12 01:54:29

问题


I am draging scrollbar of reportviewer control to try to fire the scroll event, but it does not work. DataGridView control shows the messagebox, source code like below.

private void reportViewer1_Scroll(object sender, ScrollEventArgs e) {
        MessageBox.Show("reportviewer is scrolling!");
}

private void dataGridView1_Scroll(object sender, ScrollEventArgs e) {
        MessageBox.Show("datagridview is scrolling!");
}

Have anyone encounter this problem?

Thanks.

UI - Windows forms Language - C# OS - Windows 7 64bit Tools - Visual Studio Ultimate 2013 + .Net Framework 4.6.2


回答1:


It's a bug of .Net framework 4.x (Thank Bob for his help)

The bug is reported to Microsoft Connect



来源:https://stackoverflow.com/questions/40668317/reportviewer-control-scroll-event-not-fired

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!