可以变通方法来解决。新建一工程,添加text1,text1的height刚好是最小的高度,Text1.MultiLine属性为True,Text1.ScrollBars属性值为2,复制下述代码即可运行即可看到效果
Private Sub Form_Load()
Dim i As Integer
Text1 = ""
For i = 1 To 99
Text1 = Text1 & i & vbCrLf
Next
Me.Show
Text1 = Text1 & i
DoEvents
Text1.SelStart = 51 * 4 - 1 '设置默认值为54
End Sub