usercontrol dock fill problem in Desktop

Answered
0
0

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

  • You must to post comments
Best Answer
0
0

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.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.