One of my application has one notice c# form that needs to be brought to front every time new notice received, regardless of the status of the form.
And additionally, we don't want the notice form to steal focus when brought to front.
I tried to use topMost and maximize/minimize the form, all failed.
Any ideas?
What I have tried so far:
1 Does not bring the form to front at all
Form theForm = new Form();
。。。 // Add new notice in the form content
Show();
BringToFront();
2 Bring to front but focus is grabbed
Form theForm = new Form();
。。。 // Add new notice in the form content
TopMost=true
Show();
TopMost=false
3 Bring to front but focus is grabbed
Form theForm = new Form();
。。。 // Add new notice in the form content
WindowState = FormWindowState.Minimized;
Show();
WindowState = FormWindowState.Maximized;