Results 1 to 2 of 2

Thread: need to refresh taskbar. Whats the code?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    181

    need to refresh taskbar. Whats the code?

    hmm ok. Let me explain my situation here to see what you think and why I'm lookking for a taskbar refresh code:

    Ok so my program is designed so that it doesn't showup in the taskbar when its running. (showintaskbar property is false). I created a taskbar icon however that lets the user right click and access additional information. When the user clicks the exit button, I added code in the form_closing() routine that hides the tray icon. Otherwise it would continue to show. My application has a feature that lets you close all of my applications at the same time. When you click that button, it searches through the task manager for anything thats called my application and tries to close it. Now here is the problem. Since my program doesnt show in the taskbar, I can't use the .closemainWindow() command. I have to use .kill(). By using .kill(), it doesn't take away the tray icon! So I usually end up having like 5 icons in the taskbar after everything is closed. So I was thinking that I would have the main application refresh the taskbar after it closes all the other ones, then the icons would be gone. Get whats going on?

    Thanks
    John

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: need to refresh taskbar. Whats the code?

    First off, double posting is fround upon. If you would like to bring attention bump the thread. Having said that it may just be an issue with windows. I have seen comercial apps that don't dissappear from the taskbar when the app was closed until I run the cursor accross the task bar, on certain computers. Have you tried another computer?
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width