I have a master form which is the MDI parent and a child form which is the MDI child. I use the following code to open the master form and load in a child form:
Sub MasterForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim clientForm As New ClientForm
.WindowState = FormWindowState.Maximized
End With 'clientForm
Dim document As New DocumentWindow("Document 1")
New Drawing.Point(0, 0)
Me.WindowState = FormWindowState.Maximized
I set the autoscroll property of the DocumentWindow to True, so whenever there is a field not visible a scroll bar appears, which works well.
What I can't figure out is how do I wire up code for the mousewheel event or for the KeyDown event to scroll the scrollbar? I was able to successfully do this creating a radform with 2 radpanels and a radvscrollbar. But now that I am using this autoscroll, what do i reference?