Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. msgbox show for a set time

msgbox show for a set time

Scheduled Pinned Locked Moved C#
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sokka93
    wrote on last edited by
    #1

    Hello, Is it possible to show a message box (while the macro is running, importing external data) without buttons, but only with a message and while macro is running and when macro stops running it closes itself. Thanks.

    D R A L 4 Replies Last reply
    0
    • S Sokka93

      Hello, Is it possible to show a message box (while the macro is running, importing external data) without buttons, but only with a message and while macro is running and when macro stops running it closes itself. Thanks.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      No. The MessageBox does not support this. When you show it, your code is blocked until the user clicks OK. You'll have to create your own messagebox form that supports this.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • S Sokka93

        Hello, Is it possible to show a message box (while the macro is running, importing external data) without buttons, but only with a message and while macro is running and when macro stops running it closes itself. Thanks.

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        See this[^] article. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • S Sokka93

          Hello, Is it possible to show a message box (while the macro is running, importing external data) without buttons, but only with a message and while macro is running and when macro stops running it closes itself. Thanks.

          A Offline
          A Offline
          Atif Shahbaz
          wrote on last edited by
          #4

          No it is not possible with this MessageBox.Show(). you need to design your own message box type form to accomplish this task.

          1 Reply Last reply
          0
          • S Sokka93

            Hello, Is it possible to show a message box (while the macro is running, importing external data) without buttons, but only with a message and while macro is running and when macro stops running it closes itself. Thanks.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Hey Sokka! Yes, it is obviously possible to show a message box for a limited period of time without any buttons. Create another form and design it like a Message box without any buttons in the same project. Now, in the main form's Button_Click event handler, create an object for that new MessageBox form and assign a timer value to it. You are done. Hope this helps, Rajdeep.NET :-D

            S 1 Reply Last reply
            0
            • L Lost User

              Hey Sokka! Yes, it is obviously possible to show a message box for a limited period of time without any buttons. Create another form and design it like a Message box without any buttons in the same project. Now, in the main form's Button_Click event handler, create an object for that new MessageBox form and assign a timer value to it. You are done. Hope this helps, Rajdeep.NET :-D

              S Offline
              S Offline
              Sokka93
              wrote on last edited by
              #6

              Thank you so much guys.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups