方法:在窗體的Form_Resize()事件中加入需要變化的TextBox的代碼.
例如:
Private Sub Form_Resize() Txt.Width = Main.Width - 120 Txt.Height = Main.Height - 120 End Sub