⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 13593.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>
  <head>
    <title>有问题</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>有问题</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by 小翰 on May 31, 1999 at 04:31:25:<p>
In Reply to: <a href="13531.html">请再提示一下吧?  Re: 不解 ?这问题应该没有很复杂吧!</a> posted by Jonny on May 28, 1999 at 20:06:01:<p>
<br>: 有二个TextBox => Text1,Text2<p>: Private Sub Text1_LostFocus()<br>:   If screen.ActiveControl.text = "" then <== 判断上一个TextBox.text 若是空值时,便将Focus设回前一个TextBox<br>:      screen.ActiveControl(Index -1).setfocus<br>:   End if<br>: End Sub<br>: 我想写的如上,不知正确的写法为何,请指教...<p>上面的程式是绝对有问题的<br>在 Text1_LostFocus里写 screen.ActiveControl.text 是绝对会出错,因为Text1已经LostFocus<br>此时的screen.ActiveControl是使用者点到的下一个能接收驻点的控制项,除非你的form上的控制项都有text属性<br>不然那个程式一定错<br>这种问题不要再想了, 不要什么Text1,Text2 <br>应该用 TextBox 阵列<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13593-->
<!--top: 13635--><li><a href="13635.html">还是很感谢你!  因Form上规定,不能用Text 阵列 So ...,希望能有方法解决</a> <b>Jonny</b> <i>21:51:11 5/31/99</i>
(<!--responses: 13635-->0)
<ul><!--insert: 13635-->
</ul><!--end: 13635-->
</ul><!--end: 13593-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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