Only allow numeric values in the textbox

前端 未结 12 935
南笙
南笙 2021-01-12 03:53

I want to make a TextBox control that only accepts numerical values.

How can I do this in VB6?

12条回答
  •  不知归路
    2021-01-12 04:16

    Check this out:

    http://www.vbforums.com/showthread.php?t=350067

    You need to check each keypress, or you can do one validation at the end.

提交回复
热议问题