diff --git a/PROMS/FlexableMessageBox/FlexibleMessageBox.cs b/PROMS/FlexableMessageBox/FlexibleMessageBox.cs index e2b53a61..7b4c4493 100644 --- a/PROMS/FlexableMessageBox/FlexibleMessageBox.cs +++ b/PROMS/FlexableMessageBox/FlexibleMessageBox.cs @@ -277,6 +277,10 @@ namespace JR.Utils.GUI.Forms /// private void InitializeComponent() { + // B2019-030 make this message box top most (TopMost = true) so that it doesn't display under other forms and dialogs. (i.e. Find/Replace dialog) + // the C# MessageBox() no longer has a parameter to make it the Top Most window. + // Use this FlexibleMessageBox in place of MessageBox if you want to ensure it will be on top of other forms and dialogs. + this.TopMost = true; this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.richTextBoxMessage = new System.Windows.Forms.RichTextBox();