Hello,
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:
Private
Sub MasterForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim clientForm As New ClientForm
With clientForm
.MdiParent =
Me
.MinimizeBox =
False
.MaximizeBox =
False
.WindowState = FormWindowState.Maximized
End With 'clientForm
Dim document As New DocumentWindow("Document 1")
clientForm.Visible =
True
clientForm.Show()
document.AutoScroll =
True
document.Controls.Add(ClientForm)
document.Controls(0).Location =
New Drawing.Point(0, 0)
Me.RadDock1.AddDocument(document)
Me.WindowState = FormWindowState.Maximized
End Sub
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?
Thanks,