C# / C Sharp examples (example source code) Organized by topic

C# / C Sharp
C++
PHP
C# / C Sharp Home  Screenshots 
 



 
GUI Windows Form
Services Event
Office
GUI Windows Form
Screenshots 
Agent Help  ( 2 ) Anchor  ( 3 ) Bitmap  ( 4 ) Border  ( 2 ) Button  ( 15 )
Calendar  ( 4 ) CheckBox List  ( 2 ) CheckBox  ( 7 ) Clock  ( 1 ) Color Dialog  ( 2 ) ComboBox  ( 4 )
Console  ( 1 ) Control Anchor  ( 1 ) Control  ( 5 ) Cursor  ( 3 ) Data Binding  ( 2 ) Data Validation  ( 2 )
DataGrid Data Binding  ( 2 ) DataGrid  ( 1 ) DateTimePicker  ( 3 ) Dialog  ( 1 ) Directory Tree  ( 1 ) Docking  ( 8 )
Drag Drop  ( 4 ) Editor  ( 1 ) Focus  ( 1 ) Font Dialog  ( 1 ) Font  ( 5 ) Form Event  ( 8 )
Form Frame Window  ( 20 ) Form Style  ( 4 ) Full Screen  ( 1 ) GroupBox  ( 3 ) Help System  ( 2 ) ImageList  ( 2 )
Irregularly Shaped Forms  ( 10 ) Label  ( 6 ) Layout  ( 1 ) LinkLabel  ( 3 ) ListBox Data Binding  ( 6 ) ListBox  ( 13 )
ListView  ( 13 ) MaskedTextBox  ( 1 ) MDI  ( 10 ) Menu  ( 9 ) MessageBox  ( 6 ) Mouse On Form  ( 1 )
Mouse  ( 1 ) Open File Dialog  ( 5 ) Paint  ( 1 ) Panel  ( 3 ) Password  ( 2 ) PictureBox  ( 4 )
Popup Menu  ( 1 ) Print Dialog  ( 1 ) Print  ( 15 ) ProgressBar  ( 2 ) Property Grid  ( 1 ) RadioButton  ( 9 )
RichTextBox  ( 6 ) Scrollable  ( 2 ) ScrollBar  ( 2 ) Splitter  ( 1 ) StatusBar  ( 8 ) System Tray Icon  ( 1 )
Tab  ( 1 ) TextBox  ( 10 ) Time  ( 1 ) ToolBar  ( 3 ) ToolStripMenuItem  ( 1 ) Tooltips  ( 4 )
Track Bar  ( 1 ) Tray Icon  ( 1 ) TreeView  ( 10 ) Unicode Display  ( 8 ) UpDown  ( 5 ) User Control  ( 1 )
Validation  ( 2 ) Web Browser  ( 3 )
Services Event
 
Key Event  ( 1 ) System Event  ( 1 )
Office
 
Office Application  ( 1 ) Office Event  ( 1 ) Word  ( 3 )
 
Components
Windows
Components
 
AboutBox  ( 1 ) Chart  ( 1 ) Clock  ( 1 ) ComboBox  ( 3 ) Gradient Panel  ( 1 )
Marquee Label  ( 1 ) Numeric TextBox  ( 1 ) Progress Bar  ( 1 ) Screen Capture  ( 1 )
Windows
 
Clipboard  ( 1 ) Event Log  ( 2 ) Message  ( 2 ) Registry Permission  ( 2 ) Registry  ( 6 ) Windows Principal  ( 1 )
 
File Stream
Database ADO.net
XML
File Stream
Screenshots 
Ascii String Read Write  ( 6 ) Asynchronous Input output  ( 3 ) Binary Read Write  ( 9 ) Bit Convert  ( 2 ) BufferedStream  ( 1 )
Byte Read Write  ( 2 ) Directory  ( 8 ) Encode  ( 2 ) File Attributes  ( 1 ) File Command  ( 3 ) File Cryptography  ( 5 )
File Info  ( 5 ) File MemoryStream  ( 3 ) File Read Write  ( 7 ) File Stream Encode  ( 1 ) File System  ( 2 ) File  ( 7 )
FileStream  ( 11 ) Memory Stream  ( 2 ) Random Read  ( 1 ) Serialization SOAP  ( 2 ) Serialization  ( 6 ) Stream Null  ( 1 )
Stream Read Write  ( 12 ) Text File Read Write  ( 6 ) UTF8 UTF16  ( 2 )
Database ADO.net
Screenshots 
Access  ( 4 ) ADO.NET Events  ( 1 ) BindingManagerBase  ( 1 ) Connection String  ( 2 ) Create Database  ( 1 )
Create table  ( 2 ) CSV  ( 1 ) Data Bind DataGrid  ( 3 ) Data Bind Label  ( 1 ) Data Bind ListBox  ( 1 ) Data Bind TextBox  ( 3 )
Data Binding  ( 6 ) Data Fill ListView  ( 1 ) Database to XML  ( 3 ) Database Utilities  ( 1 ) DataRelation  ( 1 ) DataRowView  ( 1 )
DataSet  ( 9 ) DataTable  ( 4 ) DataTableMapping  ( 1 ) DataView  ( 2 ) DB2  ( 2 ) Delete  ( 2 )
Insert  ( 4 ) Introduction  ( 1 ) Load Image  ( 1 ) Many to Many  ( 1 ) MySQL  ( 1 ) ODBC Connection  ( 1 )
ODBC  ( 1 ) OdbcCommand  ( 3 ) OleDbCommand  ( 9 ) OleDbConnection  ( 2 ) OleDbDataReader  ( 7 ) OleDbReader  ( 1 )
OleDbTransaction  ( 4 ) Oracle  ( 3 ) Result Set  ( 3 ) Row Count  ( 1 ) Select Query  ( 2 ) Select  ( 3 )
SQL Data Type  ( 2 ) SQL Events  ( 4 ) SQL Server Connection Pool  ( 1 ) SQL Utilities  ( 2 ) SqlCommand Parameters  ( 1 ) SqlCommand  ( 9 )
SqlCommandBuilder  ( 1 ) SqlConnection  ( 7 ) SqlDataAdapter  ( 3 ) SqlDataReader  ( 8 ) SqlException  ( 4 ) Store Procedure  ( 7 )
Table Column  ( 4 ) Table Schema  ( 6 ) Transactions  ( 5 ) Update  ( 8 ) XML Database  ( 3 )
XML
 
DOM  ( 1 ) Namespace  ( 1 ) Node Type  ( 3 ) Schema  ( 3 ) Stylesheet  ( 1 )
Tag  ( 1 ) XML Create  ( 2 ) XML DataGrid  ( 3 ) XML ListView  ( 1 ) XML Read  ( 5 ) XML Transform  ( 4 )
XML Tree  ( 2 ) XML Write  ( 6 ) XPath  ( 4 )
 
2D Graphics
2D Graphics
Screenshots 
Ani File  ( 1 ) Animation  ( 10 ) Arrow  ( 1 ) Bitmap  ( 3 ) Blend  ( 1 )
Brush  ( 8 ) Clip  ( 2 ) Color Matrix  ( 2 ) Color  ( 7 ) Coordiate  ( 2 ) Curve  ( 2 )
Dash Pen  ( 5 ) Double Buffer  ( 2 ) Drag and Draw  ( 3 ) Ellipse  ( 1 ) Font Style  ( 7 ) Font Unit Metrics  ( 6 )
Font  ( 9 ) Gif Animation  ( 1 ) Gradient  ( 13 ) Graphics File  ( 1 ) Graphics Unit  ( 4 ) Hatch Brush  ( 8 )
Icon Image  ( 12 ) Image Decoder  ( 1 ) Image  ( 8 ) Interpolation Mode  ( 2 ) JPG  ( 1 ) Line Cap  ( 9 )
Line Join  ( 2 ) Line  ( 11 ) Matrix  ( 2 ) Mouse Draw  ( 5 ) Path  ( 11 ) Pens  ( 8 )
Pie  ( 2 ) Pixel  ( 2 ) Polygon  ( 1 ) Pyramid  ( 1 ) Rectangle  ( 4 ) Region Clip  ( 2 )
Region  ( 13 ) Rotate  ( 4 ) Scale  ( 1 ) Screen  ( 1 ) Scrolling  ( 2 ) Smooth Paint  ( 2 )
Smoothing Mode  ( 4 ) String Format  ( 4 ) Text Justify  ( 3 ) Text Rendering  ( 3 ) Text  ( 13 ) Texture  ( 8 )
Transform  ( 8 )
 
Network
Web Services
Network
Screenshots 
Broadcast  ( 3 ) CDO  ( 1 ) Chat  ( 4 ) Cookie  ( 1 ) Crypto Connection  ( 3 ) Data Send Receive  ( 4 )
DNS  ( 7 ) Http Channel  ( 3 ) HTTP Put  ( 1 ) IP Address  ( 2 ) Mac Address  ( 1 ) Mail  ( 4 )
Net Mask  ( 1 ) NetworkStream  ( 4 ) Ping  ( 2 ) SNMP  ( 1 ) Socket Connection  ( 7 ) Socket Listener  ( 3 )
TCP Client  ( 13 ) TCP Server  ( 13 ) TCP Stream  ( 1 ) Udp Client  ( 13 ) Udp Server  ( 4 ) URI  ( 1 )
Web Client  ( 18 ) Web Crawler  ( 1 ) Web Proxy Server  ( 1 ) Web Request Response  ( 3 )
Web Services
 
Active Directory  ( 11 ) SOAP  ( 1 )
 
Thread
Thread
Screenshots 
Producer Consumer  ( 3 ) Thread Abort  ( 2 ) Thread and GUI  ( 2 ) Thread Creation  ( 9 ) Thread Interupt Destroy  ( 1 ) Thread Join  ( 2 )
Thread Lock  ( 2 ) Thread Monitor Manage  ( 4 ) Thread Pool  ( 4 ) Thread Properties  ( 4 ) Thread Sleep  ( 2 ) Thread Start Wait  ( 3 )
Thread Sync  ( 16 ) Threads Error  ( 1 )
 
Development Class
Collections Data Structure
Regular Expressions
Language Basics
Development Class
Screenshots 
AppDomain  ( 1 ) Application Event  ( 4 ) Assembly Permission  ( 4 ) Assembly  ( 12 ) Assert Debug  ( 2 )
Buildin Exceptions  ( 13 ) Calendar  ( 4 ) Check Uncheck  ( 3 ) Command Line  ( 2 ) Console Input Output  ( 20 ) Console  ( 3 )
CultureInfo I18N  ( 12 ) Date Time Format  ( 3 ) Date Time  ( 7 ) Debug Trace  ( 18 ) DLL  ( 3 ) Environment Settings  ( 3 )
Event Registration  ( 1 ) External API  ( 1 ) Garbage Collection  ( 4 ) Hash Code  ( 2 ) I18N  ( 1 ) Identity  ( 2 )
Log  ( 4 ) Macro  ( 4 ) Matcher  ( 6 ) Math  ( 2 ) MediaPlayer  ( 1 ) Number Format  ( 22 )
Parse  ( 1 ) Parser  ( 2 ) Polynomial  ( 2 ) Process  ( 7 ) Random  ( 2 ) Reflection Assembly  ( 27 )
Registry  ( 1 ) Regular Expression  ( 11 ) Resource ResX  ( 15 ) Round  ( 3 ) Serialization  ( 1 ) Service  ( 1 )
Sound  ( 1 ) StackAlloc  ( 1 ) Start Process  ( 1 ) System Object Method  ( 1 ) System Registry  ( 1 ) SystemEvent  ( 2 )
Timer  ( 4 ) Timespan  ( 1 ) toString  ( 2 ) Trace  ( 2 ) Unicode UTF16  ( 3 ) Volatile  ( 1 )
WMI  ( 2 ) XML Documentation  ( 1 )
Collections Data Structure
Screenshots 
Array Dimension  ( 14 ) Array Sort  ( 2 ) Array  ( 31 ) ArrayList  ( 8 ) BitArray  ( 3 ) Compare  ( 7 )
Hashtable  ( 7 ) LinkList  ( 1 ) Queue  ( 6 ) Search  ( 1 ) Set  ( 1 ) Sort  ( 5 )
SortedList  ( 4 ) Stack  ( 6 )
Regular Expressions
 
Group Capture  ( 1 ) Match  ( 1 ) Split  ( 1 )
Language Basics
Screenshots 
Abstract Class  ( 4 ) Alias  ( 2 ) At  ( 1 ) Attribute  ( 11 ) Binary Bit  ( 4 )
Boxing Unboxing  ( 6 ) Break  ( 3 ) Casting Conversions  ( 16 ) Char  ( 4 ) Class Access Modifiers  ( 5 ) Class Definition  ( 20 )
Class Deriving  ( 1 ) Class Inheritance  ( 17 ) Class Method  ( 14 ) Class Variables  ( 2 ) Clone  ( 4 ) Comments  ( 2 )
Constant  ( 2 ) Constructor Destructor  ( 17 ) Continue  ( 1 ) delegate Event  ( 11 ) delegate  ( 19 ) DLL Library  ( 5 )
Enum  ( 20 ) Event Handler  ( 3 ) Exception Class  ( 14 ) Exception Finally  ( 6 ) Exception Stack  ( 2 ) Exception Throw  ( 9 )
Exception Try Catch  ( 23 ) Exit  ( 1 ) Expressions  ( 2 ) for  ( 23 ) Foreach  ( 11 ) Function Definition  ( 4 )
Function Overloading  ( 1 ) Generic  ( 33 ) Goto  ( 4 ) HEX  ( 1 ) IComparable  ( 1 ) If  ( 12 )
Indexer  ( 15 ) Interface  ( 25 ) Internal  ( 1 ) Literal  ( 2 ) Main  ( 7 ) Mod  ( 2 )
NameSpace