![]() |
Checking to see if a message box has displayed
How would one go about checking to see if a message box is currently being displayed?
THanks |
What are you trying to do, need a bit more detail.
Not sure if this is what you're looking for, but you could use this to determine if the messagebox you opened earlier had its "ok" clicked or whether it was closed or what. :
|
what if i want to see if its currently being displayed?
|
Have you tried passing the Form object, which can be referenced using the 'Me' keyword, as the IWin32Window owner and checking if it would then be exposed via the 'OpenForms' property?
Another alternative after setting the owner would be to try and access handles via the calling Form properties that are associated with this instance, thereby you could define if any of the windows are your messagebox by conditional means (ie. matching elements such as title bar text). |
Alternatively, you could just try compiling and running and looking to see if it is being displayed?
|
LOL! :beard:
|
| All times are GMT -5. The time now is 2:44 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC