Best way is to track them when you show them. If you mean if anybody else's
MessageBox is shown then there is no official way that I am aware of.
You could pinvoke findwindow with class dialog to find out if *any* msgbox
is shown on the device (in general not just over a specific form)... I gave
an example of this previously in the context of programmatically closing a
msgbox:
http://groups-beta.google.com/group/...79f7683a8709dc
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Rahul Sur" <(E-Mail Removed)> wrote in message
news:FE9F543C-0F9D-4425-A161-(E-Mail Removed)...
> Hi frnds,
>
> How can I programmatically know whether any messageBox is shown over a
> form
> in an application?
>
> Thanx,
> Rahul