windows task manager

.paul.

Well-known member
Joined
May 22, 2007
Messages
212
Programming Experience
1-3
i'm thinking about writing something like windows task manager, but with uptime's included.
i want to run it at startup in the system tray.

how would i go about doing this?
 
If you want to run an app at startup you would add an entry to the SOFTWARE\Microsoft\Windows\CurrentVersion\Run key in the registry under HKLM or HKCU, depending on whether you want to run it for all users or just the current user.

To display an app in the system tray you add a NotifyIcon to a form, set its Icon property and set its Visible property to True.
 
So what are you asking for? How to find the uptime? Why did you say this then:
i want to run it at startup in the system tray.

how would i go about doing this?
 
i was asking for any general advice. by the time anyone answered i'd made a start on it.
i've nearly finished it now, but i do have a question about listview flicker. i'm using a timer with a 1000ms interval that updates the uptimes. i've got the flicker down to a minimum, but its still flickery. i've tried all the various methods from suspendlayout etc. to doublebuffering. in the end i used sendmessage API with WM_SETREDRAW + invalidating only the 1 column of the listview. is there a better way of doing this?
 
Back
Top