private static void ShowMessageBox() { MessageBoxWithFileSelector messageBox = new MessageBoxWithFileSelector(Caption, TextValue, Filepath, FilterValue, FolderValue, Button, IconValue); messageBox.StartPosition = FormStartPosition.CenterScreen; messageBox.TopMost = true; messageBox.Show(); FormHelper.MakeTopMost(messageBox); messageBox.Visible = false; messageBox.ShowDialog(); }