为什么vb的Form_Resize在启动时不执行
代码
Private Sub Form_Load()
'代码
Debug.Print "Form_Load"
End Sub
Private Sub Form_Activate()
Debug.Print "Form_Activate"
End Sub
Private Sub Form_GotFocus()
Debug.Print "Form_GotFocus"
End Sub
Private Sub Form_Initialize()
Debug.Print "Form_Initialize"
End Sub
Private Sub Form_Paint()
Debug.Print "Form_Paint"
End Sub
Private Sub Form_Resize()
Debug.Print "Form_Resize"
End Sub
'等待过去多长时间,以毫秒计
Public Sub TimeDelay(DT As Long)
Dim TT As Long
TT = GetTickCount()
Do
DoEvents
If GetTickCount - TT < 0 Then TT = GetTickCount
If gblnCancel = True Then Exit Do '用户单击了取消
Loop Until GetTickCount - TT >= DT
End Sub