11智能在线
新记
VB怎么设置Label1.caption的输入字符长度?
Label1.Caption=Val(InputBox("请输入一个4位数字"))
举报该文章
相关建议 2020-04-03
Dim nub As String
nub = InputBox("请输入一个4位数字")
If Len(nub) > 4 Then
MsgBox "只能输入4位"
Else
Label1.Caption = Val(nub)
End If
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/v7428m77mvfs488sfp.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
VB中label1的width值如何自动等于label1.c...
vb 如何把label的caption的字符串变为表达式计算
vb中在label里怎样输入1行以上的字
vb 中的label1.caption
vb 中.label1.caption问题
VB中,label1.caption怎么设置自动换行?
VB的Label中若Caption过长,如何截短文本再加"....
在vb程序设计中怎么样在label中输入字符