I have a Windows Form application that when it is running a process it displays a MSM type toast popup. The problem is when we create this form in a second thread and display it. The problem is when it is displayed it steals focus from other
applications or even our own. Anyone have any ideas on this and how to make it not steal focus.
I create the popup in a thread pool.
ThreadPool.QueueUserWorkItem( new WaitCallback( DisplayPopUp ), new PopUpParameters( BackgroundImage, ForeColor, Clicked, Delay, Message, ButtonText ) );
This is the code for DisplayPopUp:
using (PopUp p = new PopUp((PopUpParameters)popUpParameters))
Inside the form it has 3 timers. One for Pop, Pause, and UnPop. The form Load event is where the position of form is set and the event pop timer is started. The events for Pop and UnPop just change the form Top location. The form
is not set to TopMost.
Any help would be great.
View Complete Post