5567.html

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

HTML
30
字号
<html>
  <head>
    <title>急 !!! Setfocus 问题 ???</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>急 !!! Setfocus 问题 ???</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by nobody on September 12, 1998 at 09:11:29:<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()<br>if len(text2.text) > 10 then<br>label1.caption = "error length"<br>text2.setfocus<br>end if<br>end sub 
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 5567-->
<!--top: 5598--><li><a href="5598.html">Re: 急 !!! Setfocus 问题 ???</a> <b>小吴</b> <i>07:40:14 9/14/98</i>
(<!--responses: 5598-->1)
<ul><!--insert: 5598-->
<!--top: 5651--><li><a href="5651.html">Re: 急 !!! Setfocus 问题 ???</a> <b>nobody</b> <i>12:08:37 9/15/98</i>
(<!--responses: 5651-->0)
<ul><!--insert: 5651-->
</ul><!--end: 5651-->
</ul><!--end: 5598-->
</ul><!--end: 5567-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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