vb中text长度的问题

2025-05-21 10:06:53
推荐回答(3个)
回答1:

'方法如下:
Private Sub Text1_Change()
If Len(Text1) >= 10 Then
Text1 = Left(Text1, 10)
End If
End Sub

回答2:

textbox的 maxlength 属性设置为10

回答3:

MAXlength ba 好像 设成10就可以了