Hi,
create Desktop1
create MenuBar1 and set Dock = Top
create a usercontrol via code:
Dim uc As New MyControl
Me.Controls.Add(uc)
uc.Dock = DockStyle.Fill
uc.Show()
The usercontrol go full screen over or under Menu that is dock top
Regards
Cristian
That’s correct. The docking order is the same as the control order in the Controls collection. Use uc.BringToFront() to move up the Fill control. The same applies to the Dock.Top and Left where they intersect and to the stack order.
Please login first to submit.