text_chang()中屏蔽掉其他键
解决方案 »
- vb中编写的浏览器怎么总是在同一个窗口打开
- 参数传递为何出现错误?????????????
- ■■■字符串处理
- 如何删除引用(reference)
- 请问诸位大师,如何在vb中操作tc或gcc等编译器编译c程序?
- VB如何调用VC编写的DLL?
- 请教: 有listbox1和textbox1,在textbox1输入aaa,焦点移致listbox1,当焦点在listbox1后,如按下k键,把焦点传递给textbox1,这时光标在aaa后
- vb编个小程序
- word 的调用的问题
- 带ADODC控件的应用程序打包疑问??
- 为何winskchs.dll在winme下安装时不能注册成功
- 请问:如何把 日期型 转化 为字符型。
If KeyAscii = vbKeyTab Then Exit Sub
If KeyAscii = vbKeyBack Then Exit Sub
If KeyAscii < vbKey0 Or KeyAscii > vbKey9 Then
KeyAscii = 0
Exit Sub
End If
End Sub
Private Sub txtInput_KeyDown(KeyCode As Integer, Shift As Integer)
' ************************************************
' * 限制只能输入数字
' ************************************************
If KeyCode <> 46 and KeyCode<> vbKeyBack And KeyCode< Asc("0") Or KeyAscii > Asc("9") Then KeyCode= 0
End Sub
' ************************************************
' * 限制只能输入数字
' ************************************************
If KeyCode <> 46 and KeyCode<> vbKeyBack And KeyCode< Asc("0") Or KeyCode > Asc("9") Then KeyCode= 0
End Sub
if keycode<>48 and keycode<>49 and keycode<>50 and keycode<>51 and keycode<>52 and keycode<>53 and keycode<>54 and keycode<>55 and keycode<>56 and keycode<>57 and keycode<>13 and keycode<>8 then
keycode=0
end if
End Sub