| 
												
													| 
															
																
 
																	
																		| 
																			
 
        
    
        A snippet-sharing tool for .NET developers.
        Have you written a great piece of code that you want to share? Are you looking for
        some great code samples? CodeXchange is an Visual Studio.NET add-in providing you
        with instant integrated access to an online repository of ready to use .NET code
        snippets. 
        Code reuse is an encouraged reality in the work place, and is usually faster than
        re-inventing the wheel.   
        Last 5 snippets sharedMore by category...| 1. TDT - GridPage - Page_Init C# submitted on 7/31/2012 by Guss Davey  |  | 2. CustomValitaor C# submitted on 5/13/2011 by zhu xiaowu  |  | 3.  C# submitted on 1/12/2011 by ruairi odonnell  |  | 4. Get the file extension from a file path or file name VB.NET submitted on 9/17/2010 by Antonio Cosano  |  | 5. grab record from db and subtracts it from variable VB.NET submitted on 9/16/2010 by Marcus Reed  | 
 
        Service feeds	|  New snippets shared on CodeXchange |  	|  Top rated snippets shared on CodeXchange |  	|  Most downloaded snippets shared on CodeXchange |  	|  Last news about CodeXchange | 
 
        Tags
	
		| Connectivity
 , 
Win32Interop
 , 
Registry
 , 
Network
 , 
Common ontrols
 , 
Webservice
 , 
Database
 , 
Serialization
 , 
FileSystem
 , 
XML
 , 
BizTalk
 , 
WindowsForms
 , 
Net2
 , 
Parsing
 , 
Strings
 , 
SQLServer
 , 
Math
 , 
Conversion
 , 
Beginner
 , 
IO
 , 
Net1
 , 
Extensibility
 , 
ASPnet
 , 
DataTypes
 , 
HTML
 , 
Graphics
 , 
Advanced
 , 
Security
 , 
OperatingSystem
 , |  
        Service stats	| 17,062 Users connected to CodeXchange |  	| 903 Snippets available on CodeXchange | 
 |  
 
 
																	
																		| Copyright ©2009-2025 CodeXchange. Server version 1.0.3720.32855 Client Version 0.9.0.0 With  from Barcelona |  |  |  | 
												
													|  |  
													| 
																
																	| Most Helpful members These are the 
																			members who have received the most points for their helpful samples
 |  Zepho Zep |  |  Robert Wagner |  |  Galen Taylor | 
 All time 'Hall of fame'
 |  
																	|  |  
																	| |  Formating a file size and adding the B, KB, MB and GB extension appropriately with string.Format (C#) |  |  INI File Access (VB.NET) |  |  Read XML from string into DataSet (C#) |  |  Create Manifest File for your Application (VB.NET) |  |  Round function to avoid banker's rounding (VB.NET) | 
 |  
																	|  |  
																	| |  Get Short and Long Path Names (VB.NET) |  |  Sending Mail through authenticated SMTP server (C#) |  |  One Way Hash for strings (C#) |  |  Formating a file size and adding the B, KB, MB and GB extension appropriately with string.Format (C#) |  |  How do I load an image from a URI address? (VB.NET) | 
 |  
																	|  |  
																	| Use our easy to use Visual Studio.NET 
																			addin client and start sharing code snippets with the CodeXchange community! |  
																	| Refreshed:
																			Thursday, October 30, 2025 |  |  
													|  |  |  |