15617.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: 问题是如何TextBox只接受大于0之数字?</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 问题是如何TextBox只接受大于0之数字?</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by dino on July 14, 1999 at 03:45:14:<p>
In Reply to: <a href="15581.html">问题是如何TextBox只接受大于0之数字?</a> posted by 新手 on July 13, 1999 at 13:26:57:<p>
了解,<br>基本上sub text1_keypress不用改<p>在sub text1_change()<br>写上<br>if text1.text="0" then text1.text="1"<p>或者<br>在sub text1_lostfocus()<br>写上<br>if text1.text="0" then <br>msgbox "please input number greater than 0"<br>text1.setfocus<br>end if<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 15617-->
</ul><!--end: 15617-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?