1

If I have a Process ID or MainWindowHandle, is it possible to check that window for any pop-up dialog boxes? 99% of them are created using Messagebox.Show().

The idea is that we have about 50 PCs that are semi-automated but certain applications throw error pop-up messages and I'd like to write a monitoring application that checks every PC for possible errors, etc.

SofaKng
  • 1,063
  • 1
  • 11
  • 32
  • The code you need is in the findDialog() method in this answer: http://stackoverflow.com/questions/2576156/winforms-how-can-i-make-messagebox-appear-centered-on-mainform/2576220#2576220 – Hans Passant Mar 08 '12 at 02:32

0 Answers0