Close a msgbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Wright

    #1

    Close a msgbox

    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


  • Winger

    #2
    Re: Close a msgbox

    John Wright wrote:[color=blue]
    > 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?[/color]

    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

    Comment

    • Cerebrus

      #3
      Re: Close a msgbox

      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.htm l>

      Regards,

      Cerebrus.

      Comment

      Working...