Home All Groups Group Topic Archive Search About
Author
21 Apr 2006 8:24 PM
John Wright
How can I close a msgbox programtically.  I have a process that can run
24/7.  If an operator is not at the station, I want to close the msgbox that
appears.  How can I do this?

John

Author
21 Apr 2006 8:58 PM
Winger
John Wright wrote:
> How can I close a msgbox programtically.  I have a process that can run
> 24/7.  If an operator is not at the station, I want to close the msgbox that
> appears.  How can I do this?

Is that msgbox launched from your application?
If so, create your own msgbox-style form and a function using it to show
any messages. Use that instead of Msgbox and you will have no problems
closing it.

If you mean msgbox that has nothing to do with your application, I'd
look at simulating mouse clicks or keystrokes, which is not very
professional and there are probably other ways do to this I'm unaware of.

--
Greets,
Arkadiusz 'Winger' Slusarczyk
Author
22 Apr 2006 5:36 AM
Cerebrus
You could also try a Custom MessageBox that automatically closes after
n no. of seconds. For an example, see Eric Moreau's article :

<http://emoreau.s2i.com/Articles/200601/EricMoreau1.html>

Regards,

Cerebrus.