I've created a modeless form, and everytime I create it, regardless of using BringToFront() on it, or send to back on the parent, I can't get it to come to the foreground.
Did you try if your issue reproduces on NETCF V2 On NETCF V2, we added the Form.TopMost property that you can use to force the form to appear on the top most of the screen.
Z Order of Forms - SendToBack() BringToFront()
rhino_mik
Did you try if your issue reproduces on NETCF V2 On NETCF V2, we added the Form.TopMost property that you can use to force the form to appear on the top most of the screen.
Cheers,
Anthony Wong [MSFT]
luango
((System.Windows.Forms.Form)formarray[indexForm]).Enabled =
false;indexForm += e.m_moveByNumber;
((System.Windows.Forms.Form)formarray[indexForm]).Enabled = true;
((System.Windows.Forms.Form)formarray[indexForm]).Show();
This doesn't work, and sends the new form created with show to the back of the desktop:
((System.Windows.Forms.Form)formarray[indexForm]).Enabled = false;
((System.Windows.Forms.Form)formarray[indexForm]).Hide();
indexForm += e.m_moveByNumber;
((System.Windows.Forms.Form)formarray[indexForm]).Enabled = true;
((System.Windows.Forms.Form)formarray[indexForm]).Show();
I'm really confused here, how can I force a new modeless dialog to the top.
Thanks.
Lily
Have you tried using the .Show() and .Hide() methods
You may need to have a parent in order to use .BringToFront() and .SendtoBack()
TheBilly
I know nobody has responded, but that TopMost property saved me from a lot of headache. Of course, I had to use it in a hacky way, namely:
this.TopMost = true;
this.TopMost = false;
but it works nonetheless. Thank you.