5569.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: Setfous 问题???</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: Setfous 问题???</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by AndyLin on September 12, 1998 at 09:30:11:<p>
In Reply to: <a href="5568.html">Setfous 问题???</a> posted by nobody on September 12, 1998 at 09:20:21:<p>
: 相邻两 text control(不相邻不会有问题),其 maxlength 各定 5 及 10, 但是不知为何当 text1 输入超过长度时, label1 的值并未显示在萤幕上???<p>: sub text1_lostfocus()<br>: if len(text1.text) > 5 then<br>: label1.caption = "error length"<br>: text1.setfocus<br>: end if<br>: end sub <p>: sub text2_lostfocus()<p>将程式移至 text_change 事件中试试看<br>: if len(text2.text) > 10 then<br>: label1.caption = "error length"<br>: text2.setfocus<br>: end if<br>: end sub <p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 5569-->
</ul><!--end: 5569-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?