Click here to Skip to main content
6,594,432 members and growing! (16,936 online)
Email Password   helpLost your password?
Languages » C# » Applications     Intermediate

Freakshow - a sample application in C#

By freakshow

A collection of examples on how to use C# in one application
C#, Windows, .NET 1.0, Dev
Posted:10 Dec 2003
Updated:18 Dec 2003
Views:109,637
Bookmarked:72 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
49 votes for this article.
Popularity: 4.87 Rating: 2.88 out of 5
17 votes, 34.7%
1
6 votes, 12.2%
2
2 votes, 4.1%
3
12 votes, 24.5%
4
12 votes, 24.5%
5

Introduction

On each Tab Page there is a tiny application to show something like Clipboard actions, TCP server/client, Network Performance, serial communication, creating Processes. Source code which belongs to one Tab Page is in a separate Code Region or own class, so you don�t have to search too much if you are looking only for one thing.

Details

Here I give a short overview of what you can find in the Application. The Application stays in the Tray, if you want to exit, then use the Context menu of the tray icon.

ClipBoardLocal

Whenever you put Text to the Clipboard (e.g. pressing Ctrl-c) this Text is added to the ClipBoardLocal. It�s like collection of all Clipboard actions. The ClipBoardLocal Text can be saved to a file.

ClipBoardRemote

You can connect your Clipboard to a �Remote Clipboard� of another Computer through tcp connection. So you can copy Data through the Clipboard to another PC without using a file transfer.

Network

Here you can find an example for doing Address Resolution and watching the Network Performance with Performance counters. On pressing the Start Button a Popup Windows appears to select the Network Adapter.

File Change

Here is an example playing with the FileSystemWatcher Class to show how to monitor a drive for file access.

Mini Terminal

Communication through the serial port is not implemented in the .NET Framework, but fortunately there is a JH.CommBase class which imports all necessary stuff from the kernel32.dll. The Data can be watched in ASCII or in Hex Values. You can connect 2 PCs through a null modem cable or monitor another device.

Cmd

Here are examples to call DOS Commands in a separate process and show the result in a textbox (instead of starting the dos box).

Net Shares

All Computers of the Network are listed in a list view and the shares of the Resources are shown in a textbox.

History

  • V1.0.0 First Release
  • V1.1.0 Added Tab for showing Network Shares; Network Device can be selected for the Performance counter

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

freakshow


Member
1996-2000 Embedded SW Development for Automotive Systems
2000 - today Embedded SW Development for Telecomunication Systems (cordless phones)
Occupation: Web Developer
Location: Germany Germany

Other popular C# articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 18 of 18 (Total in Forum: 18) (Refresh)FirstPrevNext
GeneralPort monitoring Pinmembers2_priyanka20:06 20 Aug '06  
GeneralRe: Port monitoring Pinmemberdodiggitydag15:31 12 Oct '06  
GeneralJH.CommBase Version 1.3 PinmemberBelal Marzouk2:38 17 Oct '04  
GeneralRe: JH.CommBase Version 1.3 Pinmember[SPA]5:32 16 Dec '04  
GeneralWin32Com PinmemberBelal Marzouk2:27 17 Oct '04  
General.NET framework 1.1 SP1 update Pinmemberfrogsnot17:45 28 Sep '04  
GeneralRe: .NET framework 1.1 SP1 update Pinmemberfrogsnot21:27 29 Sep '04  
Generalthe MiniTerminal send data to com problem Pinmemberuk2cn5:29 29 Dec '03  
GeneralRe: the MiniTerminal send data to com problem PinmemberBoggy Man9:02 19 Mar '04  
GeneralOoops PinmemberMartin Robins at Work8:00 15 Dec '03  
GeneralGreat, but... PinmemberPaul Evans9:58 14 Dec '03  
GeneralAnother suggestion Pinmemberjeff_martin5:24 11 Dec '03  
GeneralRe: Another suggestion PinsussAnonymous12:33 11 Dec '03  
GeneralRe: Another suggestion PinmemberAlvaro Mendez9:21 12 Dec '03  
GeneralRe: Another suggestion PinsussM. Engshun10:20 14 Dec '03  
GeneralSuggestions PinmemberMatt Philmon5:17 11 Dec '03  
GeneralRe: Suggestions Pinmemberfreakshow0:39 12 Dec '03  
GeneralRe: Suggestions PinmemberTJohnson9:16 16 Dec '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 18 Dec 2003
Editor: Nishant Sivakumar
Copyright 2003 by freakshow
Everything else Copyright © CodeProject, 1999-2009
Web22 | Advertise on the Code Project