为什么vb的Form_Resize在启动时不执行
代码
Private Sub Form_Load()'代码Debug.Print "Form_Load"End SubPrivate Sub Form_Activate()Debug.Print "Form_Activate"End SubPrivate Sub Form_GotFocus()Debug.Print "Form_GotFocus"End SubPrivate Sub Form_Initialize()Debug.Print "Form_Initialize"End SubPrivate Sub Form_Paint()Debug.Print "Form_Paint"End SubPrivate 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 >= DTEnd Sub