Click here to Skip to main content
15,881,380 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 287.5K   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: excellent! here are a couple tips: Pin
Sunil TG24-Jul-03 6:29
Sunil TG24-Jul-03 6:29 
GeneralFileIO error Pin
Hap4216-Nov-02 10:05
Hap4216-Nov-02 10:05 
GeneralRe: FileIO error Pin
Sunil TG24-Jul-03 6:31
Sunil TG24-Jul-03 6:31 
QuestionHow to this application with command line compiler Pin
rsasalm_6-Jul-02 9:45
rsasalm_6-Jul-02 9:45 
AnswerRe: How to this application with command line compiler Pin
DrewArthur7-Nov-02 6:16
sussDrewArthur7-Nov-02 6:16 
GeneralRe: How to this application with command line compiler Pin
shocktech7-Feb-03 11:43
shocktech7-Feb-03 11:43 
GeneralRe: How to this application with command line compiler Pin
fish_herring13-Jun-05 16:52
fish_herring13-Jun-05 16:52 
QuestionIs this fixed yet? Pin
7-Jun-02 9:13
suss7-Jun-02 9:13 
AnswerRe: Is this fixed yet? Pin
Sunil TG12-Jun-02 1:37
Sunil TG12-Jun-02 1:37 
GeneralRe: Is this fixed yet? Pin
30-Jun-02 14:02
suss30-Jun-02 14:02 
GeneralRe: Is this fixed yet? Pin
30-Jun-02 17:37
suss30-Jun-02 17:37 
GeneralRe: Is this fixed yet? Pin
folkienux2-Feb-05 22:05
folkienux2-Feb-05 22:05 
General[Message Deleted] Pin
Pavel Sokolov27-Apr-02 12:21
Pavel Sokolov27-Apr-02 12:21 
GeneralRe: Funny :) Do you know NetSend protocol? Pin
Mike Stevenson24-May-02 12:44
Mike Stevenson24-May-02 12:44 
GeneralIts Slow Pin
24-Apr-02 9:22
suss24-Apr-02 9:22 
GeneralRe: Its Slow - just comment the refresh() function in contact class Pin
Sunil TG24-Apr-02 22:38
Sunil TG24-Apr-02 22:38 
GeneralVery good article, but could use a few improvements... Pin
Jason Douglas24-Apr-02 7:28
professionalJason Douglas24-Apr-02 7:28 
GeneralRe: Very good article, but could use a few improvements... Pin
Tim Builer19-Jul-02 9:25
Tim Builer19-Jul-02 9:25 
GeneralVery good idea ! Pin
Braulio Dez23-Apr-02 21:02
Braulio Dez23-Apr-02 21:02 
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 

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.