Foxtable(狐表)用户栏目专家坐堂 → [求助]求窗口控件数字输入代码


  共有6267人关注过本帖树形打印复制链接

主题:[求助]求窗口控件数字输入代码

帅哥哟,离线,有人找我吗?
e-png
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1695 积分:10725 威望:0 精华:0 注册:2009/10/25 16:45:00
  发帖心情 Post By:2013/4/18 0:38:00 [显示全部帖子]

窗口全局事件:click

Dim ncb As WinForm.NumericComboBox = e.Form.Controls("NumericComboBox1")

If e.sender.Text = "退格"
    If ncb.text.length > 0
        ncb.text =  left( ncb.text ,ncb.text.length-1 )
    End If
    e.cancel = True
Else
    If e.sender.name.contains("NumericComboBox1") = False
        ncb.text = ncb.text &  e.sender.text
    End If
End If


 回到顶部