To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Mar 5th, 2006, 05:10 PM   #1
JohnRChick
Addicted Member
 
Join Date: May 05
Posts: 181
JohnRChick is an unknown quantity at this point (<10)
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
JohnRChick is offline   Reply With Quote
Old Mar 5th, 2006, 05:49 PM   #2
mpdeglau
Frenzied Member
 
Join Date: Jul 05
Posts: 1,521
mpdeglau has a spectacular aura about (125+)mpdeglau has a spectacular aura about (125+)
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)
mpdeglau is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:54 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.