C# Sample Code
-
A convenient wrapper class to get file info
by Edward Tanguay
A simple wrapper class to combine the information contained in the .NET File and FileInfo classes.
-
Transactions made easy with .NET 2.0
by Xavier Larrea
One of the more significant improvement in .NET 2.0 is the transactions area. Now with a single line it becomes extremely easy to support transactional code blocks using the concept of “ambient” transaction thanks to TransactionScope in the System.Transactions namespace.
-
Developing your first Visual WebGui application
by Guy Peled
An introduction to Visual WebGui through a sample application.
-
System Menu Classes
by Michael H
Two classes that provide system menu functionality similar to the regular Menu and MenuItem classes so that you can use regular Click events instead of overriding WndProc.
-
Precise .NET Server Content Caching
by Dimitrios Markatos
A simple demonstration of how to programatically use the caching facilities that ASP.NET offers.
-
IP2Location Geolocation .NET Component in VB.NET
by IP2Location Inc
IP2Location .NET component that translates IP address to country, city, region, latitude, longitude, ZIP code, ISP and domain name. Developers use this component for projects related to: 1. Display native language and currency; 2. Redirect based on country; 3. Digital rights management; 4. Prevent password sharing and abuse of service; 5. Reduce credit card fraud; 6. Web log stats and analysis;
-
Getting Started With C#
by Bill Burris
This example is to get you started using C# in Visual Studio.NET. It is intended to be used as your first program to test your Visual Studio .NET installation, and to start finding your way around in VS
-
Visual WebGui a unique approach to AJAX development
by Guy Peled
Visual WebGui is not just another AJAX framework but rather a different approach to web application development, specially designed to simplify building highly complex applications like Outlook Web Access (OWA). Visual WebGui makes it possible for developers to create applications that were previously developed only by the "big guys".
-
RSS Feed Helper Class
by James Crowley
A simple helper class to make generating an RSS feed a piece of cake - its the one we use on Developer Fusion too!
-
System Menu Items
by Michael H
How to add menu's to the system menu and respond to clicks.
-
Modify a Window's System Menu
by Steven Cohn
How to add an additional menu item to a windows system menu.
-
Interacting with TinyPic from C#
by Fernando Sanchez
The following tutorial will demonstrate how to interact with http://tinypic.com, an image mirroring service, directly from a C# application using the WebRobot component.
-
Associating your program with every file
by David Cumps
Learn how to add a program to the shell right click menu for every file.
-
An AutoRedraw Property
by Michael H
A simple AutoRedraw property to fool around with.
-
Creating a dynamic graphic which returns a .jpg
by Edward Tanguay
This code allows an .aspx file to receive parameters (file name and width of picture) and return a JPEG resized to the requested width.
-
Encoding your script files
by ElementK Journals
Protect both your server-side and client-side scripting by using the MS encoding utility
-
Create PDF Files on fly in C#
by Salman Zafar
This sample code shows how to use the iText library to generate PDF files on the fly. The iText classes are very useful for people who need to generate read-only, platform independent documents containing text, lists, tables and images.
-
A PagingRepeater control
by Dan Glass
A PagingRepeater control extending Repeater with page navigation
-
UI Threading Helper Classes
by Roy Osherove
One of the most cumbersome things you will ever have to do with Winforms is updating your User interface while receiving events from another thread. These helper classes make it a breeze.
-
XML/XSD Schema Validator
by joe miguel
To teach how to write XML and Schemas (or DTD's). Some of the schemas language can be difficult to understand. I needed an easy (and free) way to know if my work was correct, if not then exactly what was wrong with it. As implied above, this example will also show you how to use schemas in your own programs.