怎样使一个模态对话框显示的同时(没有关闭该对话框),可以继续执行其后续的代码?(必须是模态的,因为要显示必要的信息,并且控制用户的下一步操作)frmAbout.Show vbModal
MsgBox "Show Other"

解决方案 »

  1.   

    那就不叫模态对话框
    你可以是窗体保持在最前边Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long,
    ByVal hWndInsertAfter
    As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As
    Long, ByVal wFlags
    As Long) As LongConst HWND_TOPMOST = -1Private Sub Form_Load()
    SetWindowPos Me.hwnd, HWND_TOPMOST, Me.Left / Screen.TwipsPerPixelX _
    , Me.Top \ Screen.TwipsPerPixelY, Me.Width \ Screen.TwipsPerPixelX, _
    Me.Height \ Screen.TwipsPerPixelY, 0
    End Sub