PS
Prakash S
Syncfusion Team
November 13, 2002 09:13 PM UTC
Hi Atle,
I just ran a few tests with the MDIDemo/VSDemo samples and they all appear to work normally. Please send us a sample that shows the problem. This will make it much simpler to proceed on this issue.
Thanks,
Prakash
Syncfusion, Inc.
AB
Atle Bjelland
November 14, 2002 04:30 AM UTC
Here is a very simple example which demonstrates the problem.
-Atle Bjelland
PS
Prakash S
Syncfusion Team
November 14, 2002 06:00 PM UTC
Hi Atle,
Thank you for sending the sample. I was able to reproduce the problem, and a QA report has been logged. We will fix the problem ASAP, and the fix should be available in the monthly fixes patch that should be going out around the 22nd of this month.
A temporary workaround would be for you to use just the designer for setting up your docking layout or if this is not a viable option, then to just use a temporary docked control within the designer and remove this control before you call DockingManager.DockControl on the rest of the programmatically docked controls. The preferred method for initializing docking windows is from an event handler for the DockingManager.NewDockStateEndLoad event.
Check out the following Essential Tools KB article - http://www.syncfusion.com/KB/Tools/Tools_c35c.asp#q564q.
The code snippet shows an implementation for a NewDockStateEndLoad event handler with the above workaround in your sample,
Private Sub DockingManager1_NewDockStateEndLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles DockingManager1.NewDockStateEndLoad
' Temporary docking window added within the designer can be removed if not needed
Me.DockingManager1.SetEnableDocking(Me.ListBox2, False)
' Your custom initialization follows
Dim Panel As New System.Windows.Forms.UserControl()
With Me.DockingManager1
.DockControl(Panel, Me, Syncfusion.Windows.Forms.Tools.DockingStyle.Left, Panel.Width)
End With
End Sub
Please let us know if you have any trouble with the implementation.
Prakash
Syncfusion, Inc.