Click here to Skip to main content
11,487,406 members (72,192 online)
Click here to Skip to main content

dotNETSender - Windows Messenger like GUI for net send command

, 7 May 2002 244.9K 6.5K 89
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 -->

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

Share

About the Author

Sunil TG
Architect Siemens
India India
No Biography provided

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 
Hi,
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 

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

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

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