msgbox show for a set time
-
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.
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 -
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.
-
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.
No it is not possible with this MessageBox.Show(). you need to design your own message box type form to accomplish this task.
-
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.
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
-
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