e.form.Controls("xxx").BaseControl.Anchor = Windows.Forms.AnchorStyles.Bottom
还有:
Windows.Forms.AnchorStyles.Bottom
Windows.Forms.AnchorStyles.Left
Windows.Forms.AnchorStyles.Right
Windows.Forms.AnchorStyles.Top
Windows.Forms.AnchorStyles.None
可以组合,例如锚定左下角:
e.form.Controls("xxx").BaseControl.Anchor = Windows.Forms.AnchorStyles.Bottom or Windows.Forms.AnchorStyles.Left