Messagebox with timeout

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

    #1

    Messagebox with timeout

    Hi everyone! Is it possible to show up a messagebox with timeout, so
    that it will auto select default button within certain time! Everyone
    please help!! Thanks

    Regards,
    Stanley

  • Peter Proost

    #2
    Re: Messagebox with timeout

    Hi I think you'll have to create your own messagebox for that (a normal form
    and use it's form.showialog method)

    Hth Greetz Peter

    --
    Programming today is a race between software engineers striving to build
    bigger and better idiot-proof programs, and the Universe trying to produce
    bigger and better idiots. So far, the Universe is winning.

    "Stanley" <xstanley@gmail .com> schreef in bericht
    news:1118048392 .842149.316290@ g14g2000cwa.goo glegroups.com.. .[color=blue]
    > Hi everyone! Is it possible to show up a messagebox with timeout, so
    > that it will auto select default button within certain time! Everyone
    > please help!! Thanks
    >
    > Regards,
    > Stanley
    >[/color]


    Comment

    • Cor Ligthert

      #3
      Re: Messagebox with timeout

      Stanley,

      Create your own messagebox from a form and show that with showdialog. Than
      it is very easy to do what you ask.

      I hope this helps,

      Cor


      Comment

      • Armin Zingler

        #4
        Re: Messagebox with timeout

        "Stanley" <xstanley@gmail .com> schrieb[color=blue]
        > Hi everyone! Is it possible to show up a messagebox with timeout,
        > so that it will auto select default button within certain time!
        > Everyone please help!! Thanks[/color]


        No. You can create your own Form and use it instead.

        Armin

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Messagebox with timeout

          "Armin Zingler" <az.nospam@free net.de> schrieb:[color=blue][color=green]
          >> Hi everyone! Is it possible to show up a messagebox with timeout,
          >> so that it will auto select default button within certain time![/color]
          >
          > No. You can create your own Form and use it instead.[/color]

          .... alternatively you can use p/invoke. A VB6 sample can be found here:

          <URL:http://vb.mvps.org/samples/project.asp?id= TimedMsg>

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          • Josip Habjan

            #6
            Re: Messagebox with timeout

            Hi,

            You can find something about your topic at:


            Regards,
            Josip Habjan, Croatia
            URL: www.habjansoftware.com

            "Stanley" <xstanley@gmail .com> wrote in message
            news:1118048392 .842149.316290@ g14g2000cwa.goo glegroups.com.. .[color=blue]
            > Hi everyone! Is it possible to show up a messagebox with timeout, so
            > that it will auto select default button within certain time! Everyone
            > please help!! Thanks
            >
            > Regards,
            > Stanley
            >[/color]


            Comment

            • msnews

              #7
              Re: Messagebox with timeout

              If using XP, another alternative is the MessageBoxTimeo ut function.

              Declare Function MessageBoxTimeo ut Lib "user32.dll " Alias
              "MessageBoxTime outA" (_
              Byval hwnd As Long, _
              Byval lpText As String, _
              Byval lpCaption As String, _
              Byval uType As Long, _
              Byval wLanguageID As Long, _
              Byval lngMilliseconds As Long) As Long

              Same as MessageBoxEx but with an additional timeout parameter.

              You'll have to check for the behavior you want.


              "Stanley" <xstanley@gmail .com> wrote in message
              news:1118048392 .842149.316290@ g14g2000cwa.goo glegroups.com.. .[color=blue]
              > Hi everyone! Is it possible to show up a messagebox with timeout, so
              > that it will auto select default button within certain time! Everyone
              > please help!! Thanks
              >
              > Regards,
              > Stanley
              >[/color]


              Comment

              • Stanley

                #8
                Re: Messagebox with timeout

                Ok, Thanks all!

                Comment

                Working...