dotNETSender is a simple application which
provides a neat GUI for the windows “net send” command. It looks like MSN
Messenger; you can add/delete/edit contacts in the contact list. If the
contact’s computer is turned off, the corresponding node will show an offline
icon. When minimized, the application runs in the system tray.
This is a good piece of code for beginners to get an idea about threading in C#,
delegates and events, registry operations, file operations and invoking another
process from within the program.
The elements in the tree are mapped to objects in the contact list. The
Contact class encapsulates the functionality and properties of a contact. The
ContactList class holds a collection of
Contact objects as a array
property. The functions in the
NetSender class are used to send messages and
also to check whether a contact’s machine is turned off or not.
Refresh function in
ContactList class runs, it fires an event, the
class is subscribed to this event and when it receives the event, the tree view
After being minimised to the tray, the hidden application window can be restored by
double-clicking the system tray icon.
How to Build the Application
- Extract all files in dotNETSender.zip to a folder.
- Open dotNETSender.sln file in the Visual Studio .NET editor.
- Build the application.