B2019-030 Set TopMost to true in constructor so this type of message box is always on top.

This commit is contained in:
John Jenko 2019-03-07 17:58:51 +00:00
parent 3fc34d516e
commit 7e4770d76d

View File

@ -277,6 +277,10 @@ namespace JR.Utils.GUI.Forms
/// </summary> /// </summary>
private void InitializeComponent() 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.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.richTextBoxMessage = new System.Windows.Forms.RichTextBox(); this.richTextBoxMessage = new System.Windows.Forms.RichTextBox();