I want to create a modal dialog that has more controls than what a standard .NET MessageBox offers you. I’ve created my own Windows Form that will be called with ShowDialog() to give the modal behavior. However, I’d like to utilize the graphics that come with MessageBox via MesageBoxIcon. Is this possible? Is it also possible to replicate playing the error/warning windows sounds associated with the message box icons (as they are set in the user’s windows settings)?
I want to create a modal dialog that has more controls than what a
Share
See
System.Drawing.SystemIconsclass to display the system icons theMessageBoxclass uses, such asQuestion,InformationandWarning.For the sounds, see the
System.Media.SystemSoundsclass to play the associated sounds.