lost focus on form in Windows-Mobile
-
i have C# Windows-Mobile program, that open frmWork form - from Main form. my Forms Directed for: WindowStat = Maximized TopMost = True FormBorderStyle = None from Form1 to Form2 i do something like this: this.TopMost = false; Form FG = new frmWork(); FG.ShowDialog(); this.TopMost = true ; i try allso do this: Form FG = new frmWork(); FG.ShowDialog(); i try on frmWork to do something like this: this.BringToFront(); this.TopMost = true; But unfortunately nothing helps, Sometimes the form is opened below the main form and can not see it. I'd love to get direction to solve the problem
-
i have C# Windows-Mobile program, that open frmWork form - from Main form. my Forms Directed for: WindowStat = Maximized TopMost = True FormBorderStyle = None from Form1 to Form2 i do something like this: this.TopMost = false; Form FG = new frmWork(); FG.ShowDialog(); this.TopMost = true ; i try allso do this: Form FG = new frmWork(); FG.ShowDialog(); i try on frmWork to do something like this: this.BringToFront(); this.TopMost = true; But unfortunately nothing helps, Sometimes the form is opened below the main form and can not see it. I'd love to get direction to solve the problem
Have you tried to pass the parent as a parameter with ShowDialog[^]?
Form FG = new frmWork();
FG.ShowDialog(this); // Where this is the reference to the main form