Type | Description | |||
Long | A long expression that specifies the handle of the window that hosts the calendar panel. |
If setting the Parent property to a
Here's how you can place the scheduler and the calendar to different places:
Private Sub Form_Load() Schedule1.Calendar.Parent = Schedule2.hWnd End Sub
This way the second scheduler component acts as a host for the calendar panel of the first schedule component. Any action on the schedule or calendar will be reflected on both. When a window hosts the calendar panel, it fits the entire client area. In case you re-size the window that hosts the calendar panel, you can re-assign the Calendar.Parent property, so the calendar panel updates its size so it fits the new client area of the host.