I have a non-UI assembly that contains a Form similar to the MSN Messenger
pop-up that appears when a user comes online. I have a Timer in this assembly
that on regular intervals goes and looks for new information and if it finds
any, displays the Form to the user right above the System Tray.

My problem is that the Form comes up alright, but it seems to not be getting
any Windows events like Paint and Click. Also, when I put my mouse over the
Form an hour-glass displays. I am assuming that there is a problem with the
Form being called from the Timer thread and have been trying to figure out a
solution with no luck. One note, Iâ??m trying to design this assembly to be
called from a normal WinForms application and an application that starts in
the System Tray so it might or might not have a Form running. Any help would
be greatly appreciated! Iâ??m done with this project except for this one
â??majorâ?? problem.

Thanks,
David

=====================
David McCarter
www.vsdntips.com

RE: Creating a Form From A Non-UI Thread by paulo

paulo
Wed Jan 26 15:43:07 CST 2005

Hi David

This migth give you some hints:

A Pretty Good Splash Screen in C#
http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp


"dotNetDave" wrote:

> I have a non-UI assembly that contains a Form similar to the MSN Messenger
> pop-up that appears when a user comes online. I have a Timer in this assembly
> that on regular intervals goes and looks for new information and if it finds
> any, displays the Form to the user right above the System Tray.
>
> My problem is that the Form comes up alright, but it seems to not be getting
> any Windows events like Paint and Click. Also, when I put my mouse over the
> Form an hour-glass displays. I am assuming that there is a problem with the
> Form being called from the Timer thread and have been trying to figure out a
> solution with no luck. One note, Iâ??m trying to design this assembly to be
> called from a normal WinForms application and an application that starts in
> the System Tray so it might or might not have a Form running. Any help would
> be greatly appreciated! Iâ??m done with this project except for this one
> â??majorâ?? problem.
>
> Thanks,
> David
>
> =====================
> David McCarter
> www.vsdntips.com