曾信夫 曾信夫 - 15 days ago 9
C# Question

ReportViewer control scroll event not fired

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

Answer

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

The bug is reported to Microsoft Connect