Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. TaskbarNotification display problems

TaskbarNotification display problems

Scheduled Pinned Locked Moved C#
helpdatabasemysqlgraphicslearning
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eynkram
    wrote on last edited by
    #1

    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

    E 1 Reply Last reply
    0
    • E eynkram

      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

      E Offline
      E Offline
      eynkram
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups