6001.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<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 <a href="mailto:cww5@mail.ncku.edu.tw">cww</a> on September 25, 1998 at 08:38:14:<p>
In Reply to: <a href="5986.html">那么我该如何作呢?</a> posted by 小马 on September 24, 1998 at 16:36:13:<p>
没有比较好的方法,可以记录text1, text2的内容有没有更动<br>过,而决定要不要启动LostFocus 来做事情,至于更多的控制<br>就看自己程式如何写。<p>例如:<br>Private Sub Text1_Change()<br>Text1.Tag = "1"<br>End Sub<p>Private Sub Text1_GotFocus()<br>Debug.Print "Text1 getfocus"<br>Text1.Tag = ""<br>End Sub<p>Private Sub Text1_LostFocus()<br>If Text1.Tag = "1" Then <br>   Debug.Print "text1 LostFocus"<br>   Text1.SetFocus<br>   DoEvents<br>   Text1.Tag = "1"<br>End If<br>End Sub<br>Private Sub Text2_Change()<br>Text2.Tag = "1"<br>End Sub<p>Private Sub Text2_GotFocus()<br>Debug.Print "Text2 getfocus"<br>Text2.Tag = ""<br>End Sub
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 6001-->
</ul><!--end: 6001-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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