C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

C# Source Code


Welcome to Dream.In.Code
Become a C# Expert!

Join 306,725 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,591 people online right now. Registration is fast and FREE... Join Now!





C#



  1  2  3  >  »  

Submitted: December 19, 2008        Views: 1781
Allows advanced control over the Console.Beep() method, enabling simple SFX to be added to Console applications
Submitted: May 20, 2009        Views: 1038
Use GDI to capture a .NET control visible on the screen.
Submitted: September 3, 2009        Views: 1091
Converts and control to a usable image. Also contains implementation to output as a file, or directly to an ImageSource
Submitted: August 1, 2008        Views: 844
Converts a color represented by HSL values to it's RGB equivalent.
Submitted: March 21, 2009        Views: 2001
A very simple and self-explanatory example of how to use delegates to call methods (invoke) from other threads - as well as passing objects! E.g, updating the Textbox on a form from a separate thread without error.
Submitted: June 6, 2006        Views: 3160
This function allows a developer to consume an rss feed from flickr and return it as a DataTable.
Submitted: August 21, 2008        Views: 3658
This is a snippet used to produce an MD5 hash of the string provided
Submitted: August 11, 2009        Views: 993
Snippet for getting the MD5 hash of a file, say for a checksum validation
Submitted: May 2, 2009        Views: 983
Allows you to get headers from a site in full detail.
Submitted: December 31, 2007        Views: 875
Gets the base score of a computer running Windows Vista or higher.
Submitted: October 27, 2008        Views: 3741
Does exactly what it says on the tin.
Submitted: June 13, 2008        Views: 3690
Use this code to make a control a 'handle' on the form, so that by clicking and holding the control, you can move the form accordingly. This does the same as my first snippet on this, but uses the user32 class library instead.
Submitted: July 8, 2008        Views: 2095
This is a method I use when screen scraping to retrieve all hyperlinks from the generated HTML from a WebClient call
Submitted: November 8, 2008        Views: 4909
This is a snippet I use to determine the encryption status of the connectionStrings section of the app.config file. If the section is already encrypted I remove the encryption so I can get the connection string, otherwise I encrypt it because I'm finished
Submitted: October 29, 2007        Views: 1981
Easily serialize data from your app/game.
Submitted: August 19, 2009        Views: 473
translates a phrase into any given language.
Submitted: April 4, 2009        Views: 1160
This is a snippet that utilizes iterators to recursively get all files in a provided directory (created for an application I'm working on)
Submitted: February 10, 2008        Views: 3675
This is a snippet to retrieve the free space of the provided HDD
Submitted: March 20, 2009        Views: 1926
Here is a snippet that will validate whether an absolute path is a valid path
Submitted: April 16, 2008        Views: 3375
This is a snippet I use whenever I need to validate a US zip code. The pattern allows for 1) 5 digit zip codes 2) 5 + 4 digit zip codes 3) 9 digit zip codes
Submitted: September 21, 2009        Views: 738
Gets the distance between two 2D or 3D points.
Submitted: November 9, 2008        Views: 4007
This is a snippet that has 4 methods, 1 enum and 1 Win32 API that will first check to make sure the "pinger" has an actual connection, then it sends the ping 4 times to the pinged host and returns the results
Submitted: December 30, 2007        Views: 5065
This is a snippet used to check if a provided string is all uppercase or not.
Submitted: August 6, 2009        Views: 474
This snippet demonstrates comparing 2 images to see if they're the same. We use GetPixel (http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.getpixel.aspx) to compare each pixel
Submitted: January 7, 2009        Views: 5453
This is a snippet to compare 2 images to see if they are the same. This method first converts each Bitmap to a byte array, then gets the hash of each array. We then loop through each in the hash to see if they match
  1  2  3  >  »  


Submit a Code Snippet and get a chance to win a </dream.in.code> 1GB Thumb Drive!







Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month