控件.Dock = System.Windows.Forms.DockStyle.Top
控件.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
https://msdn.microsoft.com/zh-cn/library/system.windows.forms.anchorstyles.aspx