Article ID: 111952
Article Last Modified on 7/13/2004
Sub Text1_KeyPress (KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 7 ' Beep - no effect on text
End If
End Sub
Add the following code to the Load event procedure of Form1:
Sub Form_Load()
Dim boxht as Double
boxht = Text1.Height
Text1.Height = Text1.Height * 2
'This is to make sure the text will appear in the box
Text1.Height = boxht
End Sub
Additional query words: 3.00 align format textbox
Keywords: kbhowto kbctrl KB111952