how to close MessageBox automatically
-
Hi, I want my program to close a MessageBox automatically after x seconds, whether the user answers to MessageBox or not. How is that? thanks
-
Hi, I want my program to close a MessageBox automatically after x seconds, whether the user answers to MessageBox or not. How is that? thanks
Write your own messagebox (just create a dialogform) Put a timer on it and close the form after x seconds has past. There might be a better way but this is how I would do it.
-
Write your own messagebox (just create a dialogform) Put a timer on it and close the form after x seconds has past. There might be a better way but this is how I would do it.
so how can i assign my icon to that as easy as MessageBoxIcon.Information or MessageBoxIcon.Error ... does? should i use my own PictureBox for it and make all fundamentals from the begining, or is there any other way that i use right that enum (MessageBoxIcon) instead?
-
so how can i assign my icon to that as easy as MessageBoxIcon.Information or MessageBoxIcon.Error ... does? should i use my own PictureBox for it and make all fundamentals from the begining, or is there any other way that i use right that enum (MessageBoxIcon) instead?
AFAIK, you have to create your own form and use some methods to draw the icon on it. This form can return a
DialogResult
as message box does.Navaneeth How to use google | Ask smart questions
-
Hi, I want my program to close a MessageBox automatically after x seconds, whether the user answers to MessageBox or not. How is that? thanks
-
so how can i assign my icon to that as easy as MessageBoxIcon.Information or MessageBoxIcon.Error ... does? should i use my own PictureBox for it and make all fundamentals from the begining, or is there any other way that i use right that enum (MessageBoxIcon) instead?
If you decide to create it yourself I recommend doing it from scratch. But the other reply has a link to a nice article that does exactly what you want.