From 73e7fe89f18c898be06d3e09da2b982d6f09cc13 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Sun, 10 Nov 2019 19:56:27 +0100 Subject: [PATCH] FrmScreenAutomation: Remove TopLevel when showing a FrmAutomationBotParams. --- VAR.ScreenAutomation/FrmScreenAutomation.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/VAR.ScreenAutomation/FrmScreenAutomation.cs b/VAR.ScreenAutomation/FrmScreenAutomation.cs index 058a2c4..4f99ba6 100644 --- a/VAR.ScreenAutomation/FrmScreenAutomation.cs +++ b/VAR.ScreenAutomation/FrmScreenAutomation.cs @@ -131,8 +131,16 @@ namespace VAR.ScreenAutomation { StartPosition = FormStartPosition.CenterParent }; + if (_isToplevel) + { + WindowHandling.WindowSetTopLevel(this, false); + } frmAutomationBotParameters.ShowDialog(); InitBot(_automationBot.Name); + if (_isToplevel) + { + WindowHandling.WindowSetTopLevel(this); + } } private void Start()