Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

MsgBox timeout?

Discussion in 'Information Technology' started by Maury Markowitz, Oct 27, 2005.

Tags:
  1. Maury Markowitz

    Maury Markowitz
    Expand Collapse
    Guest

    I have a msgbox I use to stop processing just before saving a file. However
    the users sometimes forget and walk away, so the file never gets saved.

    Is there some way to have a timeout, so after 10 seconds (for instance) it
    presses the OK/Cancel/whatever button?

    Maury
     
  2. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Maury Markowitz" <MauryMarkowitz@discussions.microsoft.com> wrote in
    message news:BD829D19-43A1-4A54-B22D-15736C36DE9E@microsoft.com
    > I have a msgbox I use to stop processing just before saving a file.
    > However the users sometimes forget and walk away, so the file never
    > gets saved.
    >
    > Is there some way to have a timeout, so after 10 seconds (for
    > instance) it presses the OK/Cancel/whatever button?


    The easiest way is to use your own dialog form instead of calling the
    MsgBox function, and use the form's Timer event to do whatever is
    necessary to close the form and return the default response.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page