Search code examples
.netwindowmessagebox

Set a max height on a .NET MessageBox


I use MessageBox.Show() with a huge text message, so the message window get out of the screen.
Does anyone know how to avoid this ugly behaviour by fixing the max height of the window ?


Solution

  • Pretty sure MessageBox is a fixed size. Can use Window.ShowDialog() for a modal window.