租房买房买生意上iU91
查看: 389|回复: 0
打印 上一主题 下一主题

请教VB高手T_T

[复制链接]   [推荐给好友]
跳转到指定楼层
楼主
发表于 2005-11-5 16:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Private Sub Disable_Click()
    Dim Response
    Dim oResult As Long
    Dim I
    NodeID.Text = m_wNodeId
    I = 1
    oResult = VCS_SetDisableState(m_KeyHandle, m_wNodeId, m_lErrorCode)
   
    'oResult = False everytime , so excute Do While ... Loop

    Do While I = 1
    If (oResult = False) Then
        Timer1.Enabled = False
      
        Timer2.Enabled = True
      
    End If
    Loop
End Sub
--------------------------------------
Private Sub Timer2_Timer()
  Dim Response
  Response = MsgBox("timer2", vbOKOnly, "Error", "", 0)
  Timer2.Enabled = False
End Sub

问题: 为什么执行后,不弹出msgbox"timer2" ?, 但是去掉Do While...Loop,却能弹出呢?
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

Copyright © 1999 - 2024 by Sinoquebec Media Inc. All Rights Reserved 未经许可不得摘抄  |  GMT-4, 2024-6-5 17:34 , Processed in 0.033273 second(s), 31 queries .