
Using PgUp and PgDn keys in the Crystal Report Viewer
I'm shocked that the PgUp and PgDn keys don't work by default in the CR.NET Crystal Report Viewer. Fine, I'll do it myself by capturing the KeyPress event. By how?
Private Sub CrystalReportViewer1_KeyPress(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles CrystalReportViewer1.KeyPress
If e.KeyCode = <PgUp?>
Me.CrystalReportViewer1.ShowPreviousPage()
Endif
If e.KeyCode = <PgDn?>
Me.CrystalReportViewer1.ShowNextPage()
Endif
End Sub
Thanks,
TP