' To set the Dock property internally.
Me.Dock = DockStyle.Top
' To set the Dock property from another object.
UserControl1.Dock = DockStyle.Top
// To set the Dock property internally.
this.Dock = DockStyle.Top;
// To set the Dock property from another object.
UserControl1.Dock = DockStyle.Top;
// To set the Dock property internally.
this.set_Dock(DockStyle.Top);
// To set the Dock property from another object.
UserControl1.set_Dock(DockStyle.Top);