CodeXchange Friday, October 31, 2014
Home
What's it?
Download
Register
My Snippets
Add Snippet
Search
Faq
Contact Us
Sponsors

Website hosted by


Last snippets submitted by category

Don't miss any interesting snippet posted on CodeXchange!

Last 5 snippets Shared

1. TDT - GridPage - Page_Init C# submitted on 7/31/2012 by Guss Davey Preview Code Snippet
2. CustomValitaor C# submitted on 5/13/2011 by zhu xiaowu Preview Code Snippet
3. C# submitted on 1/12/2011 by ruairi odonnell Preview Code Snippet
4. Get the file extension from a file path or file name VB.NET submitted on 9/17/2010 by Antonio Cosano Preview Code Snippet
5. grab record from db and subtracts it from variable VB.NET submitted on 9/16/2010 by Marcus Reed Preview Code Snippet

XML

1. C# submitted on 1/12/2011 by ruairi odonnell Preview Code Snippet
2. sasasaasdasdas C# submitted on 6/30/2010 by Lubos Kostros Preview Code Snippet
3. Load Lesson Collection C# submitted on 6/2/2010 by Kevin Shi Preview Code Snippet
4. Error Handling C# submitted on 5/6/2010 by Bhavesh Patel Preview Code Snippet
5. testiram funkcionalnosti C# submitted on 4/1/2010 by Peter Kirič Preview Code Snippet

Security

1. Basic Encryption/Decryption C# submitted on 3/9/2010 by Marc Piulachs Preview Code Snippet
2. Check if user existing/valid in Active Directory VB.NET submitted on 9/13/2007 by Raphael Okelola Preview Code Snippet
3. Switch from HTTP to HTTPS automatically C# submitted on 3/18/2007 by Zepho Zep Preview Code Snippet
4. Symmetric key encryption and decryption using Rijndael algorithm. C# submitted on 11/7/2006 by Matej Flis Preview Code Snippet
5. Creating CAPTCHA Image C# submitted on 9/18/2006 by Utkarsh Shigihalli Preview Code Snippet

GDI+

1. Resizing a Bitmap image C# submitted on 3/9/2010 by Marc Piulachs Preview Code Snippet
2. Windows XP Theme detector C# submitted on 5/8/2006 by Zepho Zep Preview Code Snippet
3. ScreenCapture: Captures the primary desktop screen. C# submitted on 2/21/2006 by Palle Kristensen Preview Code Snippet
4. Resize images proportionally, with high quality ouput C# submitted on 1/27/2006 by Ernesto Giralt Preview Code Snippet
5. Drawing Round-Edged Rectangle Using VB.NET VB.NET submitted on 12/23/2005 by Ronald Allen Preview Code Snippet

Best Practices

1. Property w/ backing field + Debug attibutes + Documentation C# submitted on 1/4/2008 by Alex Occulate Preview Code Snippet
2. Bichinha Detector Code HTML & Javascript submitted on 9/18/2007 by Rafael Mello Preview Code Snippet
3. thread launch C# submitted on 4/6/2007 by Paolo Benjamin Briones Preview Code Snippet
4. Generic Singleton Pattern C# submitted on 5/6/2006 by Simone Busoli Preview Code Snippet
5. Singleton pattern VB.NET submitted on 10/14/2005 by Benoit Gauthier Preview Code Snippet

Extension Methods

1. String extension methods that encodes/decodes a string to Base64. C# submitted on 3/23/2010 by John Tolar Preview Code Snippet
2. string extension method that converts the string to a byte-array using default/specified encoding. C# submitted on 3/23/2010 by John Tolar Preview Code Snippet
3. string extension methods that uses regular expressions to split a string into parts. C# submitted on 3/23/2010 by John Tolar Preview Code Snippet
4. Group of string extension methods that uses regular expressions to replace parts of a string. C# submitted on 3/23/2010 by John Tolar Preview Code Snippet
5. String extension method that uses regular expressions to determine if the string matches to a given regex pattern. Allows you to specify RegExOptions C# submitted on 3/23/2010 by John Tolar Preview Code Snippet

Math

1. test test test C# submitted on 5/2/2007 by M J Preview Code Snippet
2. nCr function C# submitted on 7/12/2006 by yancyn Then Preview Code Snippet
3. nPr, permutation C# submitted on 7/12/2006 by yancyn Then Preview Code Snippet
4. factorial function C# submitted on 7/12/2006 by yancyn Then Preview Code Snippet
5. Creates a LONG value by concatenating the specified values. C# submitted on 5/17/2006 by Zero Override Preview Code Snippet

ASP.NET

1. CustomValitaor C# submitted on 5/13/2011 by zhu xiaowu Preview Code Snippet
2. Insert javascript file C# submitted on 12/20/2007 by Robin Reekers Preview Code Snippet
3. Insert stylesheet C# submitted on 12/20/2007 by Robin Reekers Preview Code Snippet
4. ValidateLogin C# submitted on 10/9/2007 by stevenkovich tang Preview Code Snippet
5. Criar e Configurar WindosServices C# submitted on 10/4/2007 by carlos martins Preview Code Snippet

Remoting

1. Get the users Login ID / Network User ID / USERID / Windows Principal C# submitted on 12/14/2005 by Robert Wagner Preview Code Snippet
2. FileShareClient.cs C# submitted on 10/29/2005 by Robert Wagner Preview Code Snippet
3. public static double Divide(double x, double y) C# submitted on 4/29/2005 by Robert Wagner Preview Code Snippet
4. Make your client overlook the certificate name mismatch programmatically. Little variation on code by Ted Graham and msdn. The class must be assigned to System.Net.ServicePointManager.CertificatePolicy in the beginning of client code. C# submitted on 4/27/2005 by Isabelle Therrien Preview Code Snippet

Advanced Sample

1. Enumerate installed patches for a given product using MSI API C++ submitted on 8/7/2006 by Yan Michalevsky Preview Code Snippet
2. Copy a datatable to a new datatable VB.NET submitted on 10/4/2005 by Janus Hansen Preview Code Snippet
3. C# : Great Debug Information using the StackFrame C# submitted on 5/4/2005 by Damon Carr Preview Code Snippet
4. C#: Test for Out Of Memory using Unsafe Code C# submitted on 5/2/2005 by Damon Carr Preview Code Snippet
5. C# : Return Information from the Call Stack to help in Debugging your Code C# submitted on 5/2/2005 by Damon Carr Preview Code Snippet

Mail

1. Sending Mail through authenticated SMTP server C# submitted on 6/2/2005 by Prasad GVL Preview Code Snippet
2. Decoding text encoded in Quoted-Printable format C# submitted on 6/2/2005 by Prasad GVL Preview Code Snippet
3. Email validation w/ DNS in java J# submitted on 4/17/2005 by J.Marc Piulachs Preview Code Snippet

Enterprise

1. Windows event log helper based on IssueVision Smart Client sample C# submitted on 6/2/2005 by J.Marc Piulachs Preview Code Snippet
2. Bind to Active Directory and create a new user VB.NET submitted on 4/24/2005 by J.Marc Piulachs Preview Code Snippet
3. CSV parser for C# C# submitted on 4/22/2005 by J.Marc Piulachs Preview Code Snippet
4. Detect an Visual Studio running instance C# submitted on 4/6/2005 by J.Marc Piulachs Preview Code Snippet
5. How to convert a colour image to grayscale C# submitted on 4/6/2005 by J.Marc Piulachs Preview Code Snippet

Visual Studio

1. Update SQL databace from CSV file VB.NET submitted on 8/9/2006 by Mischa Princ Preview Code Snippet
2. Draw images to a listbox and control font settings for each item VB.NET submitted on 4/16/2006 by Matt Simmons Preview Code Snippet
3. Single Region C# submitted on 2/28/2006 by jay johnson Preview Code Snippet
4. File selector UITypeEditor C# submitted on 1/2/2006 by J.Marc Piulachs Preview Code Snippet
5. Guint FoFiBase::getUVarBE C++ submitted on 9/29/2005 by li hongbin Preview Code Snippet

Beginner Sample

1. grab record from db and subtracts it from variable VB.NET submitted on 9/16/2010 by Marcus Reed Preview Code Snippet
2. Compare Byte Array VB.NET submitted on 1/25/2008 by L H Preview Code Snippet
3. create a popup menu in anywhere you want! C# submitted on 4/28/2007 by ryan fu Preview Code Snippet
4. Javascript to close a popup and refresh the parent window HTML & Javascript submitted on 3/21/2007 by Greg Gamble Preview Code Snippet
5. Simple and secure password generation C# submitted on 3/21/2007 by Greg Gamble Preview Code Snippet

Common Controls

1. WDM - Xceed Delete VB.NET submitted on 3/27/2006 by Daren Hawes Preview Code Snippet
2. WDM - Outlook Panes Navigation VB.NET submitted on 3/27/2006 by Daren Hawes Preview Code Snippet
3. Animated Gif C# submitted on 1/10/2006 by Robert Wagner Preview Code Snippet
4. Fade the form into view on the load event C# submitted on 1/10/2006 by Robert Wagner Preview Code Snippet
5. Hook into the paint event for myButton. Create a new graphics object C# submitted on 1/10/2006 by Robert Wagner Preview Code Snippet

Other

1. TDT - GridPage - Page_Init C# submitted on 7/31/2012 by Guss Davey Preview Code Snippet
2. Starting a windows service from .net C# submitted on 12/10/2007 by Poovannan Rajendran Preview Code Snippet
3. Get an exceptions full stack trace with inner ex C# submitted on 3/19/2007 by Zepho Zep Preview Code Snippet
4. Provides the reverse of a passed in string VB.NET submitted on 3/19/2007 by Marc Piulachs Preview Code Snippet
5. Search into a SQL 2005 database VB.NET submitted on 11/2/2006 by Metaferia Amhayesus Preview Code Snippet

IO

1. Read file line by line C# submitted on 3/9/2010 by Marc Piulachs Preview Code Snippet
2. create PDF document using Itextsharp.dll VB.NET submitted on 5/3/2007 by do hoang hai Preview Code Snippet
3. read Exel WorkSheet VB.NET submitted on 5/3/2007 by do hoang hai Preview Code Snippet
4. Enumerate all files in a directory C# submitted on 8/7/2006 by Yan Michalevsky Preview Code Snippet
5. Export DatagridView to CSV VB2005 -Pat Tormey VB.NET submitted on 6/30/2006 by Pat Tormey Preview Code Snippet

ADO.NET

1. Read a column from a databsae VB.NET submitted on 11/3/2006 by Metaferia Amhayesus Preview Code Snippet
2. Test Dataset for errors VB.NET submitted on 9/13/2006 by Dwaine Wright Preview Code Snippet
3. Copy values of one row to another row VB.NET submitted on 9/13/2006 by Dwaine Wright Preview Code Snippet
4. Add Rows To Table VB.NET submitted on 9/12/2006 by Kuntal Shah Preview Code Snippet
5. Merge Tables VB.NET submitted on 9/12/2006 by Kuntal Shah Preview Code Snippet

Interop

1. The following class implements the functionality of the QueryPerformanceCounter() and QueryPerformanceFrequency() API methods. C# submitted on 1/31/2006 by Zepho Zep Preview Code Snippet
2. Flashes the specified window one time C# submitted on 1/31/2006 by Zepho Zep Preview Code Snippet
3. SetWebBrowserFooter C# submitted on 1/10/2006 by Robert Wagner Preview Code Snippet
4. Invoke commands on the Web Browser control. C# submitted on 12/19/2005 by Robert Wagner Preview Code Snippet
5. Printing Win32 API C# submitted on 8/31/2005 by Milan B. Preview Code Snippet

Smart Clients

1. INotifyPropertyChanged C# submitted on 7/11/2010 by Chris Koenig Preview Code Snippet
2. Displays a MessageBox C# submitted on 11/20/2006 by Steven Lewis Preview Code Snippet
3. Simple helper class that performs base64 encoding / decoding. C# submitted on 12/29/2005 by Robert Wagner Preview Code Snippet
4. The Settings class does all of the work. C# submitted on 12/29/2005 by Robert Wagner Preview Code Snippet
5. Read / write settings to config (xml) file. C# submitted on 12/29/2005 by Robert Wagner Preview Code Snippet

COM

1. ActiveX late binding (ThumbCtl class example) C# submitted on 2/13/2007 by Rafał Ziółkowski Preview Code Snippet
2. Register .NET asembly windows installer class C# submitted on 1/10/2006 by J.Marc Piulachs Preview Code Snippet

Network

1. Your Current IP VB.NET submitted on 12/16/2006 by Metaferia Amhayesus Preview Code Snippet
2. Easy server ping VB.NET submitted on 10/14/2006 by Mischa Princ Preview Code Snippet
3. Internet Connection Status C# submitted on 5/26/2006 by Simone Busoli Preview Code Snippet
4. Sends out an echo request to a specific computer on the network (Ping for .NET) C# submitted on 4/24/2006 by Zepho Zep Preview Code Snippet
5. Test an Ip Address to see if it's contained in a subnet VB.NET submitted on 2/21/2006 by Mark Brackett Preview Code Snippet

Arrays

1. Convert String To Array Byte C# submitted on 3/18/2008 by Ho Hoang Preview Code Snippet
2. IComparable example to sort array elements C# submitted on 5/1/2006 by Zepho Zep Preview Code Snippet
3. Storing Multidimensional Arrays in the Registry C# submitted on 4/25/2006 by Zepho Zep Preview Code Snippet
4. Get Missing Items from 2 Arrays C# submitted on 12/30/2005 by Josh Crosby Preview Code Snippet
5. Expand/Increase size of an array C# submitted on 10/15/2005 by Jan Zieschang Preview Code Snippet

Peer to peer

1. P2P Transfer class TCPListener and the TCPClient classes C# submitted on 12/19/2005 by Robert Wagner Preview Code Snippet
2. p2p File Share Server C# submitted on 10/29/2005 by Robert Wagner Preview Code Snippet

ASP.NET

1. Generate random numbers C# submitted on 12/10/2007 by Poovannan Rajendran Preview Code Snippet
2. betoxz - Varrer radioButtonList para pegar valores HTML & Javascript submitted on 10/3/2007 by carlos martins Preview Code Snippet
3. Betoxz - Varre Grid infragistics pegando valores C# submitted on 9/11/2007 by carlos martins Preview Code Snippet
4. Export ListBox Item to DataTable, useful to session or re-binding data. VB.NET submitted on 4/23/2007 by Duong Tuan Anh Preview Code Snippet
5. Sharepoint 2007 Load DropDownList from list that depends on other C# submitted on 1/4/2007 by Jaime López Preview Code Snippet

Strings

1. How to create a stream from a string in .Net VB.NET submitted on 8/11/2010 by Robert Richards Preview Code Snippet
2. Boolean check for string as Integer C# submitted on 3/29/2007 by Vidar Markussen Preview Code Snippet
3. Generate Luhn C# submitted on 3/29/2007 by Vidar Markussen Preview Code Snippet
4. Check if a string is a number C# submitted on 6/8/2006 by Greg Gamble Preview Code Snippet
5. Display Currency as text (Dollars & Cents) VB.NET submitted on 3/22/2006 by Mark Conway Preview Code Snippet

Webservices

1. Consume Webservice via proxy server C# submitted on 2/5/2007 by Rafał Ziółkowski Preview Code Snippet
2. How to POST to a generic Web Service C# submitted on 5/10/2006 by Fabian Nicollier Preview Code Snippet
3. Web Service for File Transmission VB.NET submitted on 4/5/2006 by Leonardo Grimaldi Preview Code Snippet
4. How to Create a Web Service in C# C# submitted on 12/19/2005 by Robert Wagner Preview Code Snippet

Windows Forms

1. Get the file extension from a file path or file name VB.NET submitted on 9/17/2010 by Antonio Cosano Preview Code Snippet
2. DoubleBufferedPanel C# submitted on 11/2/2007 by david huntley Preview Code Snippet
3. Pretty Form Caption using filename and version number. C# submitted on 7/17/2007 by David Gentils Preview Code Snippet
4. Finding file types in vb.net VB.NET submitted on 5/24/2007 by Avi T Preview Code Snippet
5. perform a wait, like if you would like to show a notification for a while then hide the notification C# submitted on 11/2/2006 by Waleed Al-Hezam Preview Code Snippet

Regular Expressions

1. Validate credit card number by regular expression C# submitted on 5/1/2006 by Brian Madsen Preview Code Snippet
2. Regular Expression matches to a string. C# submitted on 1/6/2006 by Galen Taylor Preview Code Snippet
3. Validate email address VB.NET submitted on 10/14/2005 by Benoit Gauthier Preview Code Snippet
4. Finds and extracts the title of HTML file with RegEx C# submitted on 9/2/2005 by Zepho Zep Preview Code Snippet

Database

1. Betoxz - Criar Pivot Tables T-SQL submitted on 10/23/2007 by carlos martins Preview Code Snippet
2. Create SQLDataAdapter when given the Database Name and the required SQL string C# submitted on 6/21/2007 by Ryan Blake Preview Code Snippet
3. DataRow to String VB.NET submitted on 9/13/2006 by Dwaine Wright Preview Code Snippet
4. WDM - SQL SP Return DS VB.NET submitted on 7/17/2006 by Daren Hawes Preview Code Snippet
5. WDM - SQL SP Execute Non Query VB.NET submitted on 7/17/2006 by Daren Hawes Preview Code Snippet

NET

1. Convert a databound boolean field value to "Yes" / "No" VB.NET submitted on 7/27/2010 by Jeremy Burgess Preview Code Snippet
2. Convert a databound boolean field value to "Yes" / "No" C# submitted on 7/27/2010 by Jeremy Burgess Preview Code Snippet
3. Create a Windows Program Using C# C# submitted on 6/2/2010 by Kevin Shi Preview Code Snippet
4. DateTimeValidation VB.NET submitted on 5/8/2007 by behdad khoshbin Preview Code Snippet
5. DateTimeFormatParse VB.NET submitted on 5/8/2007 by behdad khoshbin Preview Code Snippet

Win32 API

1. Detect running Visual Studion instance C# submitted on 3/8/2010 by Marc Piulachs Preview Code Snippet
2. Check if filename is valid (Win32) C# submitted on 3/19/2007 by Zepho Zep Preview Code Snippet
3. adding users C# submitted on 10/24/2006 by Aniel Pepe Preview Code Snippet
4. Get Temp directory path C++ submitted on 8/7/2006 by Yan Michalevsky Preview Code Snippet
5. Is screenserver running ? C# submitted on 7/24/2006 by Zepho Zep Preview Code Snippet

Utility

1. Allows you to add string values to Enumerations using an Attribute. C# submitted on 3/22/2010 by John Tolar Preview Code Snippet
2. Use Reflectionto create an instance of the generic type specified using the parameters specified. Extension Method. C# submitted on 3/22/2010 by John Tolar Preview Code Snippet
3. Uses Reflection to create an instance of a generic type specified using the default constructor. C# submitted on 3/22/2010 by John Tolar Preview Code Snippet
4. Returns the date for the first day of the week C# submitted on 8/28/2007 by Todd Knudsen Preview Code Snippet
5. Returns last day of month based on passed in date C# submitted on 8/28/2007 by Todd Knudsen Preview Code Snippet

Internet

1. Javascript that will allow text box entry by selected key board keys ... Validation HTML & Javascript submitted on 3/21/2007 by Greg Gamble Preview Code Snippet
2. Retrieve Web Image VB.NET submitted on 4/26/2006 by Captain Akahige Preview Code Snippet
3. Download file via FtpWebRequest C# submitted on 3/2/2006 by Detlef Grohs Preview Code Snippet
4. How to check to make sure a URL is valid C# submitted on 12/19/2005 by Robert Wagner Preview Code Snippet
5. Make Http Request with Proxy support C# submitted on 12/1/2005 by Andries Coetzee Preview Code Snippet



Copyright ©2009-2014 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: Friday, October 31, 2014