diff --git a/DS4Windows/Program.cs b/DS4Windows/Program.cs index ee59300..e2d7971 100644 --- a/DS4Windows/Program.cs +++ b/DS4Windows/Program.cs @@ -157,14 +157,14 @@ namespace DS4Windows /// /// private delegate void SetFormVisableDelegate(Form frm); - static private void ThreadFormVisable(Form frm) + private static void ThreadFormVisable(Form frm) { if (frm is DS4Form) { // display the form and bring to foreground. - frm.WindowState = FormWindowState.Normal; - frm.Focus(); - frm.Activate(); + DS4Form temp = (DS4Form)frm; + temp.Show(); + temp.WindowState = FormWindowState.Normal; } } }