Click here to Skip to main content
15,890,741 members
Articles / Programming Languages / C#
Article

dotNETSender - Windows Messenger like GUI for net send command

Rate me:
Please Sign up or sign in to vote.
3.61/5 (19 votes)
7 May 20021 min read 288K   7K   92   57
Windows Messenger like GUI for net send command

Sample Image - MainDlg.jpg

Introduction

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.

Description

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.

Sample Image

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.

When the Refresh function in ContactList class runs, it fires an event, the form class is subscribed to this event and when it receives the event, the tree view gets refreshed.

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

  1. Extract all files in dotNETSender.zip to a folder.
  2. Open dotNETSender.sln file in the Visual Studio .NET editor.
  3. Build the application.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect Siemens
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: Very good idea ! - Thanks Pin
Sunil TG23-Apr-02 22:35
Sunil TG23-Apr-02 22:35 
GeneralAdd Reply button Pin
Pervez23-Apr-02 4:34
Pervez23-Apr-02 4:34 
GeneralSuggestion 2 :) Pin
John O'Byrne23-Apr-02 3:48
John O'Byrne23-Apr-02 3:48 
GeneralRe: Suggestion 2 :) Pin
Anonymous25-Sep-02 20:58
Anonymous25-Sep-02 20:58 
GeneralRe: Suggestion 2 :) Pin
Sunil T.G.26-Sep-02 5:13
sussSunil T.G.26-Sep-02 5:13 
GeneralProject won't run Pin
23-Apr-02 2:20
suss23-Apr-02 2:20 
GeneralRe: Project won't run Pin
Giles23-Apr-02 2:44
Giles23-Apr-02 2:44 
GeneralRe: Project won't run Pin
Sunil TG23-Apr-02 2:49
Sunil TG23-Apr-02 2:49 
Sorry its due to a icon file path which I used from outside my project folder.. I will correct that and put the source code soon. Otherwise you can change the icon path setting in downloaded code to app.ico in the project folder....

Sunil TG

Sunil TG
suniltg@msn.com

GeneralRe: Project won't run Pin
Sunil TG23-Apr-02 3:01
Sunil TG23-Apr-02 3:01 
GeneralSuggestion Pin
benjymous23-Apr-02 0:43
benjymous23-Apr-02 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.