如题!
解决方案 »
- VB操作IIS添加筛选器代码
- 如何设置dataCombo控件的默认选项
- 10022Socket not bound, invalid address or listen is not invoked prior to accept
- vb及assess 谢谢
- 急,如何设置mmcontrol播放影像得大小
- VB+ACCESS的问题???
- 如何在桌面出现之前运行我的电脑保护程序。
- 100分请教个简单类的代码(我快被气死了!!)
- 我快疯了。。。问个小问题竟然没人回答???????????
- 关于IE的问题。怎样得到新打开IE窗口的标题。
- WebBrowser的问题,IDE调试和编译后的运行结果不同
- 关于datagrid中的itemdatabound问题
If IsNumeric(Text1.Text) = False Then
MsgBox "±§Ç¸£¬ÇëÊäÈë´¿Êý×Ö"
End If
End Sub
Option ExplicitPrivate Sub Form_Load()
Text1 = ""
End SubPrivate Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = Asc(".") Then
Text1 = Text1
Else
KeyAscii = 0
End If
End Sub
Private Sub Form_Load()
Text1 = ""
End SubPrivate Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Or KeyAscii = Asc(".") Then
Text1 = Text1
Else
MsgBox "抱歉,请输入纯数字"
KeyAscii = 0
End If
End Sub
Text1 = ""
End SubPrivate Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") And Len(Text1) < 5 Or KeyAscii = vbKeyBack Then
Text1 = Text1
Else
MsgBox "抱歉,请输入纯数字或输入数字超过5位"
KeyAscii = 0
End If
End Sub