CodeFreezer c# code library

CodeFreezer.com is a C# code library dedicated to giving you quality c# source code and c# tutorials on a wide range of topics such as LINQ, WPF, c# database programmming and more.

 
 
 
latest c# code
Print any FrameworkElement in WPF with Scaling
Print a FrameworkElement and have it scaled to the correct size of the paper, and a title added to the top of the print-out.
Save a FramworkElement to a file as an Image
Take any FrameworkElement in WPF and save it as a JPG, GIF or PNG file.
Starting a WPF application from a Main method
You can start a WPF application using a main method similiar to how WinForms worked. This allows you to do security, or other tasks before loading any UI.
Binding to a Full Object Instead of a Property in WPF
Shows the syntax needed to bind to an element in a collection and not the property of an element.
Use LINQ to Reverse the Items in a Collection
Quickly reverse the order of the elements in a collection using LINQ.
Pull Elements from a Collection using LINQ Based on Type
Use LINQ to get only elements from a collection that match the type your looking for.
Do a Reverse Lookup in a Dictionary using LINQ
Shows how you can use a LINQ ILookup to find the key of an item in a dictionary if you have the value.
Finding the Intersection of Two Lists
Use LINQ to quickly determine what elements two lists have in common, and return a new list that contains only the items found in both lists.
Getting a Random Color
Generate a random color in C#
Build Database Wrapper with Generics
Create a database wrapper using generics that lets you easily extend it to different databases such as SQL Server, Oracle or MySQL.
more code...
most popular c# code
Getting Stock Quote data from Yahoo using the API
Download stock quote data directly from Yahoo and have it available in your application. There is much more than just price available you can get bid, offer, dividends and more.
Database Update Tutorial with WPF and LINQ
Learn to write an interface using WPF and LINQ and update a database with hardly any code.
Converting from UTC to Local Time in C#
Shows how to create UTC DateTime objects and convert between UTC and Local.
Getting a Random Color
Generate a random color in C#
Building an RSS Ticker using WPF and LINQ
Tutorial that shows how to build a WPF ticker control to scroll news feeds. Includes full project and source code.
Send a Network Ping in C#
Send a Ping command from your C# code.
Getting the Screen Size in WPF
Determining the size of the screen in WPF
Starting a WPF application from a Main method
You can start a WPF application using a main method similiar to how WinForms worked. This allows you to do security, or other tasks before loading any UI.
Fitering a ListBox in WPF
How to filter a ListBox automatically in WPF as a user is typing.
Use WPF to Animate a Brush
In WPF it's possible to animate a brush. This demonstrates this technique using a ColorAnimation.
more code...
 

 

 
Main | Code | RSS | Links | About