分享

VB6.0 : Set textbox to Numeric

 nxhujiee 2019-01-05
I think you might see some quite interesting and unexpected results from that code. This version might work slightly better...
Expand|Select|Wrap|Line Numbers
  1. Private Sub txtProDate_KeyPress(KeyAscii As Integer)
  2.   Select Case KeyAscii
  3.     Case Is < 32
  4.       ' Ignore
  5.     Case Asc("0") To Asc("9")
  6.       ' Ignore
  7.     Case Else
  8.       KeyAscii = 0
  9.       Beep            ' Sound error signal.
  10.   End Select
  11. End Sub
May 17 '07 #4

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多