troubleshooting Question

Use SendMessage to clear a pop up message box

Avatar of DColin
DColinFlag for Thailand asked on
Visual Basic.NET
7 Comments1 Solution302 ViewsLast Modified:
Hi Experts,

The attached code will pop a three button message box.

I would like to write an application that will detect this message box and click one of the buttons of my choosing. I know SendMessage is the function I need but I can not find usable examples to follow.
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        MessageBox.Show("Message Box Text", "Message Box Title", MessageBoxButtons.AbortRetryIgnore)

    End Sub

End Class

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros