From efa78ec8a05b40ef1fbbf56489f8d21129c0c97a Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 23 Aug 2019 18:05:10 +0100 Subject: [PATCH] Attempt to make sure that the setup dialog comes up on top of windows. --- Meade.net/SetupDialogForm.cs | 1 + Meade.net/SetupDialogForm.designer.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Meade.net/SetupDialogForm.cs b/Meade.net/SetupDialogForm.cs index 874ecbc..2ad1077 100644 --- a/Meade.net/SetupDialogForm.cs +++ b/Meade.net/SetupDialogForm.cs @@ -74,6 +74,7 @@ namespace ASCOM.Meade.net private void SetupDialogForm_Shown(object sender, EventArgs e) { + BringToFront(); Activate(); } diff --git a/Meade.net/SetupDialogForm.designer.cs b/Meade.net/SetupDialogForm.designer.cs index 0f875dd..af1859b 100644 --- a/Meade.net/SetupDialogForm.designer.cs +++ b/Meade.net/SetupDialogForm.designer.cs @@ -152,6 +152,7 @@ namespace ASCOM.Meade.net this.MinimizeBox = false; this.Name = "SetupDialogForm"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.TopMost = true; this.Shown += new System.EventHandler(this.SetupDialogForm_Shown); ((System.ComponentModel.ISupportInitialize)(this.picASCOM)).EndInit(); this.ResumeLayout(false);