9364.html

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

HTML
27
字号
<html>
  <head>
    <title>Re: 它真的又再开启frmaa表单啊~一段程式码如下,不知那里错了</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 它真的又再开启frmaa表单啊~一段程式码如下,不知那里错了</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by Stanley on January 19, 1999 at 17:05:20:<p>
In Reply to: <a href="9361.html">Re: 它真的又再开启frmaa表单啊~一段程式码如下,不知那里错了</a> posted by coco on January 19, 1999 at 16:23:41:<p>
: 它真的又再开启frmaa表单,不信你看下列<p>: 我的次表单(frmbb)其中的一段程式码<p>: Private Sub cmdOK_Click()<p>: With lstdd<p>: For i = 0 To .ListCount - 1<br>:     If .Selected(i) Then<br>:       If cc = "" Then<br>:          cc = .List(i)<br>:       Else<br>:          cc = cc & ";" & .List(i)<br>:       End If<br>:     End If<br>:  Next<br>:  End With<br>:  Unload Me<br>:  frmaa.data1.Text = cc<br>:  End Sub<p>:  ps.cc我已在模组中宣告public<p>想必你在frmbb.show后一定有unload frmaa吧! 那你再frmaa.data1.Text = cc时它就会再重新执行Form_Load一次,假如你在frmbb作业时一定得关掉frmaa,那你可以将Unload frmaa改为frmaa.Visible = False等需要show时才设为True,那就不会再重新Load了,不过frmaa所占的记忆体并未释放就是了。<p>PS.嗯...上面这段蛮眼熟的(I am Someone. Stanley,too.)<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9364-->
<!--top: 9366--><li><a href="9366.html">Re: 我没有unload frmaa表单,它一直都在画面上啊~</a> <b>coco</b> <i>17:32:00 1/19/99</i>
(<!--responses: 9366-->0)
<ul><!--insert: 9366-->
</ul><!--end: 9366-->
</ul><!--end: 9364-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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