Article ID: 143262
Article Last Modified on 7/15/2004
Text1.Multiline = True
Text1.Scrollbars = 3 'Both
Const x = 100 'where x and y are scaled values that you
Const y = 385 'use to take into account the fact that
'the TextBox should be a little less wide
'and high than the form. You should
'initialize these to constant values.
Private Sub Form_Load()
Text1.Left = 0
Text1.Top = 0
Text1.Width = Me.Width - x
Text1.Height = Me.Height - y
End Sub
Private Sub Form_Resize()
Text1.Width = Me.Width - x
Text1.Height = Me.Height - y
End Sub
Keywords: kbhowto KB143262