We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


How do I detect errors with VB.net on a External Application

Medium Priority
Last Modified: 2012-05-11
I have an application I wrote in VB.net  3.5 It does some work for me by monitoring the time my users have on an application that I did not write. I have no control over this 3rd Party application. This is how my app works.

The users click my icon and I throw a stopwatch up in the corner of the screen my app then launches the 3rd Party application using Process.Start("application.exe")

Every once in a while the application(3rd Party) will throw errors, like rundll32 can not start or memory violation errors some errors are throw by the application it's self and some are generic windows errors. I'd like to have my helper app detect the errors and log them. I already have a timer event firing to update the stop clock.

The Ideas I had were a couple, if there is someone I can look for find Forms and identify when that error pops up

or to take a screenshot of the errors that I know and then some how every second try and match what is on the screen with my error signature. This because I would have to do it ever second would need to be very light weight and fast. I have about 5-6 known errors.

Any help would be appreciated, If you have other ideas of how I could accomplish this I am all ears.
Watch Question

High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Unlock this solution and get a sample of our free trial.
(No credit card required)


Let me try this tomorrow morning and see how it works thanks


Ok so I have a list of all my hWnd's but how to get the properties  like title
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009

You can use the GetWindowText() API.

The code here may be helpful:


ok good I got the window and I got the window title using the GetWindowText API.... Now I can detect when that window pops up now can I detect when a "label" in that window displays "Finished"
Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.