C# / .NET messagebox is not modal May 21, 2023 by Tarik You need to assign the MessageBox owner property to the main UI window (look at the 3rd constructor).