Is there a way to catch whether a certain message has popped out. I tried:
If MsgBox("Well done!", MsgBoxStyle.OkOnly, "Amazing") = Visible = True Then
Me.WindowState = FormWindowState.Maximized
End If
Is there a way to catch whether a certain message has popped out. I tried:
If MsgBox("Well done!", MsgBoxStyle.OkOnly, "Amazing") = Visible = True Then
Me.WindowState = FormWindowState.Maximized
End If
In your program? Or in another program?
In my program
One way (not necessarily the best way) is to use AutoIt to get a list of all windows and check the title bar text for a match. I use this for a lot of vbscript jobs to do just that.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.