Is it possible to call the static MessageBox
class Show()
method in a way that it does not have a taskbar icon, or has a custom image? I'm trying to find an alternative to constructing custom MessageBox
class.
Thanks.
I tried to the the DefaultDesktopOnly
option in the following way:
if (MessageBox.Show("Are you sure you would like to do something?", "Title", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly) == DialogResult.Yes)
{
//Do stuff
}
However there was still an icon in the taskbar and also the main form started crashing as well. I'm in Win7 if it matters. Are there stability issues with DefaultDesktopOnly
?
Not possible.
MessageBox functionality is given to us as is. Some items are configurable, some are not. There are alternatives on the net. Check out in CodeProject, they have a few.