Click here to Skip to main content
Licence 
First Posted 22 Apr 2002
Views 222,828
Downloads 5,617
Bookmarked 84 times

dotNETSender - Windows Messenger like GUI for net send command

By | 7 May 2002 | Article
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

About the Author

Sunil TG

Architect
Siemens
India India

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmembermjanulaitis12344:59 18 May '10  
RantDoes not work on Server 2008 Pinmembermjanulaitis12344:59 18 May '10  
QuestionWhat is "System Name" that should be entered ? Pinmemberadamnguyen8:49 19 Nov '08  
QuestionMessage Removed Pinmembersgramya19:08 16 Oct '08  
AnswerRe: Rebuild Error. PinmemberSunil TG4:28 26 Oct '08  
GeneralPing Code Pinmemberthebeekeeper4:59 15 Dec '06  
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 Pinmemberawsedrftgy0:21 31 Jul '05  
GeneralSystem Name Pinmemberfolkienux0:46 3 Feb '05  
GeneralCannot send message! PinmemberKrishna Rathod23:58 18 Oct '04  
GeneralRegistry Key Permission Pinmemberbenoit_laflamme19:53 4 Oct '04  
GeneralRe: Registry Key Permission Pinmemberfolkienux0:49 3 Feb '05  
GeneraldotNETSender is really good! Pinmemberlmmmm7:41 17 Sep '04  
Generaldoes this application need .NET framework to be installed Pinmemberlava_kushal19:51 6 Sep '04  
GeneralRe: does this application need .NET framework to be installed PinmemberSunil TG22:56 16 Sep '04  
GeneralHelp wanted in building a GUI .Net Remoting Pinmembernutkase21:35 29 Mar '04  
QuestionCustom groups? Pinmembershiner24713:56 26 Jan '04  
AnswerRe: Custom groups? PinmemberSunil TG22:59 16 Sep '04  
QuestionVS 6.0 or C++? PinmemberAntonDel7:36 9 Aug '03  
AnswerRe: VS 6.0 or C++? PinmemberSunil TG6:33 10 Aug '03  
GeneralThank You PinmemberDesScorp14:05 4 Aug '03  
GeneralNet Sender PinsussAnonymous6:21 4 Aug '03  
GeneralNo Download of Code PinmemberARL18:18 21 Jul '03  
GeneralRe: No Download of Code PinmemberSunil TG6:25 24 Jul '03  
GeneralStill Icon Error Pinmemberpochacco19:22 20 Jun '03  
GeneralRe: Still Icon Error PinmemberSunil TG6:29 24 Jul '03  

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.

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