View Single Post
Old Jul 2nd, 2007, 4:03 PM   #4
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
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..
john Wesley is offline   Reply With Quote