Search code examples
c#winformsformatmessagebox

C# formatting a MessageBox


I want to display a MessageBox alerting the user that the process is complete, and giving a breakdown on how long each stage of the process took. I've got the text that I want to display formatted appropriately, but the default font of the MessageBox class is not mono-width. As far as I can tell, there's no way to specify the font that the text displays with.

Is there an out-of-the-box library somewhere that I can use for this, or am I going to have to write one up myself?


Solution

  • Any reason not to just create a Form with a textbox/label using a monospace font, then call Form.ShowDialog? Sounds like a separate library with that would be overkill to me.