Join 244,303 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 778 people online right now. Registration is fast and FREE... Join Now!
Project: System Manager! I started a new project about a week ago. I called it System Manager. System Manager is a Mini Version of Task Manager. So far I have 7 Tabs. Processes, Windows. Services, Users, and Miscellaneous. Hope to post the Source / App Soon!
Processes: - View Processes - View Username - View Memory Usage(Kilobytes) Windows: - View Windows - View Status(Responding / Not Responding) Services: - View Services - ID - Description - Status Users: - View all Users - View Status(Active / Inactive) - Domain to which the user belongs to. Drives: - Letter - Type - Description - Free Space - Used Space - Total Space Drivers: - Name - Path - Description - Status - Start Mode Miscellaneous: - RAM(Byte, Kilo, Mega, Giga) - Screen(Width, Height, Resolution) - System Properties(System Directory, Uptime, Machine Name, Username) - Mouse Position(X, Y, Position) - Running(Processes, Threads, Handles) Menu Items |File| -New Process -Kill Process -Close |View| -Refresh |Options| -Run on Startup -Top Most |Help| -About
Screenshots
This post has been edited by gbertoli3: 5 Oct, 2008 - 05:50 PM
This is similar to what I do in both my main applications:
csharp
// since you're checking if it already exists, let's store the contents of the listbox in an array. String [] current; // contains the current contents of your listbox String [] temp; // stores the NOW contents of what's going on // (use to determine whether it's different to the current contents) // it's up to you to populate it, just loop through your listbox. (I'll show you where)
public MainForm() { Thread thr = new Thread(new ThreadStart(Thread_Method)); // populate current with the contents of your listbox, after it's been filled for the first time }
void Thread_Method() { // run a check to get all the NOW events // pseudocode: if (current != temp) // if it's changed, then we should update it this.listBox1.Invoke(new updateListBoxCallBack(updateListBox)); }
public delegate void updateListBoxCallback(); public updateListBox() { // update it in here }
EDIT: Oh yah, BTW, in cays ur wundrin: X-Twitter uses a thread to check if there's been an update, if there has, it adds it to the friend updates panel The Snippet Manager uses the same principal to check for updates for the Clipboard Log.
This is where I struggle with helping people, because a lot of my code is non-standard~ I tend to find my own way to do things, instead of going by the "regular" stuff.
At the end of the day, it's your code. Go for what seems right to you, then start looking into performance stuff afterwards. It's the best way to learn.