Click here to Skip to main content
13,290,261 members (54,192 online)
Click here to Skip to main content
Add your own
alternative version


92 bookmarked
Posted 22 Apr 2002

dotNETSender - Windows Messenger like GUI for net send command

, 7 May 2002
Rate this:
Please Sign up or sign in to vote.
Windows Messenger like GUI for net send command
<!-- Download Links --> <!-- Article image -->

Sample Image - MainDlg.jpg

<!-- Add the rest of your HTML here -->


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.

Sample Image

The elements in the tree are mapped to objects in the contact list. The

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 to a folder.
  2. Open dotNETSender.sln file in the Visual Studio .NET editor.
  3. Build the application.


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


About the Author

Sunil TG
Architect Siemens
India India
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 1 Pin
mjanulaitis123418-May-10 5:59
membermjanulaitis123418-May-10 5:59 
RantDoes not work on Server 2008 Pin
mjanulaitis123418-May-10 5:59
membermjanulaitis123418-May-10 5:59 
QuestionWhat is "System Name" that should be entered ? Pin
adamnguyen19-Nov-08 9:49
memberadamnguyen19-Nov-08 9:49 
AnswerRe: Rebuild Error. Pin
Sunil TG26-Oct-08 5:28
memberSunil TG26-Oct-08 5:28 
GeneralPing Code Pin
thebeekeeper15-Dec-06 5:59
memberthebeekeeper15-Dec-06 5:59 
This was a very interesting article, good job!

I have one suggestion after reading through it. I noticed that you're calling a batch file, pingsys.bat to send a ping and then reading the result from a text file. This is a very clever way to get the desired result, but I've got a feeling there are a lot of things that could go wrong. System.Net.NetworkInformation has a Ping class that you can use to ping hosts. Take a look at: msdn for a good example of using it. It looks like this class is new in .NET 2.0, so I'm guessing that's why you didn't use it.
GeneralCannot run Project Pin
awsedrftgy31-Jul-05 1:21
memberawsedrftgy31-Jul-05 1:21 
GeneralSystem Name Pin
folkienux3-Feb-05 1:46
memberfolkienux3-Feb-05 1:46 
GeneralCannot send message! Pin
Krishna Rathod19-Oct-04 0:58
memberKrishna Rathod19-Oct-04 0:58 
GeneralRegistry Key Permission Pin
benoit_laflamme4-Oct-04 20:53
memberbenoit_laflamme4-Oct-04 20:53 
GeneralRe: Registry Key Permission Pin
folkienux3-Feb-05 1:49
memberfolkienux3-Feb-05 1:49 
GeneraldotNETSender is really good! Pin
lmmmm17-Sep-04 8:41
memberlmmmm17-Sep-04 8:41 
Generaldoes this application need .NET framework to be installed Pin
lava_kushal6-Sep-04 20:51
memberlava_kushal6-Sep-04 20:51 
GeneralRe: does this application need .NET framework to be installed Pin
Sunil TG16-Sep-04 23:56
memberSunil TG16-Sep-04 23:56 
GeneralHelp wanted in building a GUI .Net Remoting Pin
nutkase29-Mar-04 22:35
membernutkase29-Mar-04 22:35 
QuestionCustom groups? Pin
shiner24726-Jan-04 14:56
membershiner24726-Jan-04 14:56 
AnswerRe: Custom groups? Pin
Sunil TG16-Sep-04 23:59
memberSunil TG16-Sep-04 23:59 
QuestionVS 6.0 or C++? Pin
AntonDel9-Aug-03 8:36
memberAntonDel9-Aug-03 8:36 
AnswerRe: VS 6.0 or C++? Pin
Sunil TG10-Aug-03 7:33
memberSunil TG10-Aug-03 7:33 
GeneralThank You Pin
DesScorp4-Aug-03 15:05
memberDesScorp4-Aug-03 15:05 
GeneralNet Sender Pin
Anonymous4-Aug-03 7:21
sussAnonymous4-Aug-03 7:21 
GeneralNo Download of Code Pin
ARL21-Jul-03 19:18
memberARL21-Jul-03 19:18 
GeneralRe: No Download of Code Pin
Sunil TG24-Jul-03 7:25
memberSunil TG24-Jul-03 7:25 
GeneralStill Icon Error Pin
pochacco20-Jun-03 20:22
memberpochacco20-Jun-03 20:22 
GeneralRe: Still Icon Error Pin
Sunil TG24-Jul-03 7:29
memberSunil TG24-Jul-03 7:29 
Generalexcellent! here are a couple tips: Pin
ben creitz13-Jun-03 7:09
sussben creitz13-Jun-03 7:09 
GeneralRe: excellent! here are a couple tips: Pin
Sunil TG24-Jul-03 7:29
memberSunil TG24-Jul-03 7:29 
GeneralFileIO error Pin
Hap4216-Nov-02 11:05
memberHap4216-Nov-02 11:05 
GeneralRe: FileIO error Pin
Sunil TG24-Jul-03 7:31
memberSunil TG24-Jul-03 7:31 
QuestionHow to this application with command line compiler Pin
rsasalm_6-Jul-02 10:45
memberrsasalm_6-Jul-02 10:45 
AnswerRe: How to this application with command line compiler Pin
DrewArthur7-Nov-02 7:16
sussDrewArthur7-Nov-02 7:16 
GeneralRe: How to this application with command line compiler Pin
shocktech7-Feb-03 12:43
sussshocktech7-Feb-03 12:43 
GeneralRe: How to this application with command line compiler Pin
fish_herring13-Jun-05 17:52
memberfish_herring13-Jun-05 17:52 
QuestionIs this fixed yet? Pin
Anonymous7-Jun-02 10:13
memberAnonymous7-Jun-02 10:13 
AnswerRe: Is this fixed yet? Pin
Sunil TG12-Jun-02 2:37
memberSunil TG12-Jun-02 2:37 
GeneralRe: Is this fixed yet? Pin
Anonymous30-Jun-02 15:02
memberAnonymous30-Jun-02 15:02 
GeneralRe: Is this fixed yet? Pin
Anonymous30-Jun-02 18:37
memberAnonymous30-Jun-02 18:37 
GeneralRe: Is this fixed yet? Pin
folkienux2-Feb-05 23:05
memberfolkienux2-Feb-05 23:05 
General[Message Deleted] Pin
Pavel Sokolov27-Apr-02 13:21
memberPavel Sokolov27-Apr-02 13:21 
GeneralRe: Funny :) Do you know NetSend protocol? Pin
Mike Stevenson24-May-02 13:44
memberMike Stevenson24-May-02 13:44 
GeneralIts Slow Pin
Anonymous24-Apr-02 10:22
memberAnonymous24-Apr-02 10:22 
GeneralRe: Its Slow - just comment the refresh() function in contact class Pin
Sunil TG24-Apr-02 23:38
memberSunil TG24-Apr-02 23:38 
GeneralVery good article, but could use a few improvements... Pin
Jason Douglas24-Apr-02 8:28
memberJason Douglas24-Apr-02 8:28 
GeneralRe: Very good article, but could use a few improvements... Pin
tbuiler19-Jul-02 10:25
susstbuiler19-Jul-02 10:25 
GeneralVery good idea ! Pin
Braulio Díez23-Apr-02 22:02
memberBraulio Díez23-Apr-02 22:02 
GeneralRe: Very good idea ! - Thanks Pin
Sunil TG23-Apr-02 23:35
memberSunil TG23-Apr-02 23:35 
GeneralAdd Reply button Pin
Pervez23-Apr-02 5:34
memberPervez23-Apr-02 5:34 
GeneralSuggestion 2 :) Pin
slashp23-Apr-02 4:48
memberslashp23-Apr-02 4:48 
GeneralRe: Suggestion 2 :) Pin
Anonymous25-Sep-02 21:58
sussAnonymous25-Sep-02 21:58 
GeneralRe: Suggestion 2 :) Pin
Sunil T.G.26-Sep-02 6:13
sussSunil T.G.26-Sep-02 6:13 
GeneralProject won't run Pin
Anonymous23-Apr-02 3:20
memberAnonymous23-Apr-02 3: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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 8 May 2002
Article Copyright 2002 by Sunil TG
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid