TaskbarNotification display problems
-
Hi, I recently downloaded the code from a project on this site called TaskbarNotification. It is a little msn style popup window that pops up on the taskbar. When using this class in a single threaded application it works fine. Now i have to use multi-threading because the program checks a mysql database for updates and pop's up the window when there is one. Since i need to loop indefinatly I had to thread the task. Now a line only appears at the bottom of the taskbar and goes away. If I add a call to MessageBox.Show("whatever") write after i call taskbarNotification1.show() the message box pops up and the taskbar notification window shows. I thought the problem could be the passing of the background bitmap to the taskbarNofication class. I tried to initialize the background bitmap in the actual class but get a resource error. I guess threads don't have access to the resources the Microsoft Studio makes you add. Any help would be appreciated.. Thanks.. Mark
-
Hi, I recently downloaded the code from a project on this site called TaskbarNotification. It is a little msn style popup window that pops up on the taskbar. When using this class in a single threaded application it works fine. Now i have to use multi-threading because the program checks a mysql database for updates and pop's up the window when there is one. Since i need to loop indefinatly I had to thread the task. Now a line only appears at the bottom of the taskbar and goes away. If I add a call to MessageBox.Show("whatever") write after i call taskbarNotification1.show() the message box pops up and the taskbar notification window shows. I thought the problem could be the passing of the background bitmap to the taskbarNofication class. I tried to initialize the background bitmap in the actual class but get a resource error. I guess threads don't have access to the resources the Microsoft Studio makes you add. Any help would be appreciated.. Thanks.. Mark
Hi All, This ones a stumper.... Some more detail.. The thread gets started that loops indefinately. It checks a database for a new message and displays it in the taskbar popup window. In the thread class i created there is a block of code initializing the popup window. When you call the show function: taskbarNotifier1.Show("Chatter",what,500,5000,200); You get a small line on top of the taskbar. If I change the code to this.. taskbarNotifier1.Show("Chatter",what,500,5000,200); MessageBox.Show(what); The popup window shows as long as the messagebox is open. When I close the messagebox the popup disapears. This is very strange almost bug like. Does anyone have any suggestions or thoughts on this.. Please help!!! Thanks, Mark