![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2006
Posts: 8
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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. vbnet Syntax (Toggle Plain Text)
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Dec 2006
Posts: 8
Rep Power: 0
![]() |
what if i want to see if its currently being displayed?
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
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).
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
Alternatively, you could just try compiling and running and looking to see if it is being displayed?
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
LOL! :beard:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| message queue game | programmingnoob | C | 19 | Sep 29th, 2006 5:14 AM |
| Compiling Maverik 6.2 (from C) | megamind5005 | C | 16 | May 3rd, 2006 5:41 PM |
| How to to do this using Win32 API? | csharp | C++ | 4 | Nov 1st, 2005 5:22 AM |
| Can anyone help me PLEASE???? | jasmm_73 | C | 4 | Jun 7th, 2005 8:27 PM |
| AIM Random Away Message System | mdhislaer | Java | 2 | Feb 20th, 2005 3:28 PM |