diff --git a/Meade.net/SetupDialogForm.cs b/Meade.net/SetupDialogForm.cs index 79b1816..2a1dac3 100644 --- a/Meade.net/SetupDialogForm.cs +++ b/Meade.net/SetupDialogForm.cs @@ -63,5 +63,10 @@ namespace ASCOM.Meade.net return profileProperties; } + + private void SetupDialogForm_Shown(object sender, EventArgs e) + { + Activate(); + } } } \ No newline at end of file diff --git a/Meade.net/SetupDialogForm.designer.cs b/Meade.net/SetupDialogForm.designer.cs index 0c80d7c..11f868f 100644 --- a/Meade.net/SetupDialogForm.designer.cs +++ b/Meade.net/SetupDialogForm.designer.cs @@ -102,6 +102,7 @@ namespace ASCOM.Meade.net this.MinimizeBox = false; this.Name = "SetupDialogForm"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.Shown += new System.EventHandler(this.SetupDialogForm_Shown); ((System.ComponentModel.ISupportInitialize)(this.picASCOM)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/Meade.net/SharedResources.cs b/Meade.net/SharedResources.cs index e7c8fa0..733506b 100644 --- a/Meade.net/SharedResources.cs +++ b/Meade.net/SharedResources.cs @@ -221,7 +221,7 @@ namespace ASCOM.Meade.net using (SetupDialogForm F = new SetupDialogForm()) { F.SetProfile(profileProperties); - + var result = F.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) {