Thanks very much, but I'm still having trouble.
After removing the CommandDock, the menu adjusted programmatically from left-alignment to top-alignment like a dream! But, unfortunately, removing the CommandDock also removes the ability to AutoHide the menu, which is vital to my application.
My 2 subs act as follows:
DockLeft() docks the menu on the left within the CommandDock. Because the menu is set up like this in the designer, it displays perfectly in run-time.
DockTop() occurs once the user has clicked "Dock Menu at Top". The menu docks at the top, but the tabs still run on the left even though I have coded " MenuDockingTab.Alignment = TabAlignment.Top".
Here is my revised code:
Private Sub DockTop()
btnCReception.Location = New Point(153, 31)
cboTYear.Location = New Point(153, 31)
cboTUsers.Location = New Point(296, 31)
btnTOpen.Location = New Point(439, 30)
btnTCopyMonth.Location = New Point(582, 30)
btnTPrint.Location = New Point(725, 30)
btnTAdminPrint.Location = New Point(867, 30)
cboExYear.Location = New Point(153, 31)
cboExUsers.Location = New Point(296, 31)
btnExOpen.Location = New Point(439, 30)
btnExPrint.Location = New Point(582, 30)
btnExAdminPrint.Location = New Point(725, 30)
btnStaffMan.Location = New Point(153, 31)
btnDockTop.Location = New Point(153, 31)
btnDockLeft.Location = New Point(296, 31)
'MenuDockingTab Initialize
C1CommandDock1.Dock = DockStyle.Top
MenuDockingTab.Alignment = TabAlignment.Top
MenuDockingTab.Size = New Size(1016, 91)
MenuDockingTab.AutoHiding = True
End Sub
Private Sub DockLeft()
btnCReception.Location = New Point(10, 60)
cboTYear.Location = New Point(10, 60)
cboTUsers.Location = New Point(10, 88)
btnTOpen.Location = New Point(10, 126)
btnTCopyMonth.Location = New Point(10, 155)
btnTPrint.Location = New Point(10, 184)
btnTAdminPrint.Location = New Point(10, 213)
cboExYear.Location = New Point(10, 60)
cboExUsers.Location = New Point(10, 88)
btnExOpen.Location = New Point(10, 126)
btnExPrint.Location = New Point(10, 155)
btnExAdminPrint.Location = New Point(10, 184)
btnStaffMan.Location = New Point(10, 60)
btnDockTop.Location = New Point(10, 60)
btnDockLeft.Location = New Point(10, 88)
'MenuDockingTab Initialize
C1CommandDock1.Dock = DockStyle.Left
MenuDockingTab.Alignment = TabAlignment.Left
MenuDockingTab.Size = New Size(184, 721)
MenuDockingTab.AutoHiding = True
End Sub
Please could you provide me with an email address that I could send screenshots to as you're image inserter is not working.
Kind Regards.