>>Thanks. It isn't what I'm looking for. What I am really trying to do is detect that a VFP messagebox has opened. I'm trying to move this to vfp9.
>
>No chance.
>All you can do is to redirect the messagebox via #DEFINE, and set some flag while the messagebox is open.
>It's a pain.
Perhaps rigorously replace one of its parameters with a function which will return the value of the parameter, and also set a flag somewhere...? Still leaves you with no clue as to when was it closed, unless you wrap the whole call in some other procedure and then never use plain messagebox anywhere?
Messagebox is a pain - it's not a VFP form, it doesn't take focus from the current form, it takes it from the whole app, causing bunch of events to fire, and yes, you have no clue when it opens and closes, even in those events, which may have been triggered by something else. A phantom.