Sample Code
-
How to run through multiple DataReader results
by Edward Tanguay
You can save code by piling SQL statements into one SqlCommand and then getting a DataReader with multiple result sets.
-
Capture a Screen Shot
by James Crowley
Demonstrates how to capture a screen shot of the entire desktop, or a particular window in C# or VB.NET.
-
A PagingRepeater control
by Dan Glass
A PagingRepeater control extending Repeater with page navigation
-
Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512
by David Cumps
In PHP its a simple task to generate hashes, but in C# it takes a little more work. We'll create a Hash class to simplify the process.
-
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!
-
How to access a MySQL database with .NET
by Edward Tanguay
Demonstrates how to connect to a MySQL database with C#.
-
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.
-
Executing a .CS file
by David Cumps
Demonstrates how to write a C# program that can "launch" a .cs file and execute it.
-
Associating your program with every file
by David Cumps
Learn how to add a program to the shell right click menu for every file.
-
CExtStatusControlBar - Managing status bar's panes
by Dmitriy Yakovlev
An enhanced status bar which allows you to easily add/remove almost any controls to/from its panes, on-the-fly.
-
Add a JavaScript popup to an ASP.NET button
by Edward Tanguay
How to add a javascript popup (alert) question to an ASP.NET button control.
-
Merge an .exe and a .dll into one .exe
by Edward Tanguay
How to merge an .exe and a .dll into one .exe using ilmerge in VS.NET
-
I need a time-out!
by Wouter van Vugt
I need a time-out! Or more specifically, my methods need a time-out mechanism. And because I spent seven projects and quite some time on the web trying to find out how to do it correctly, I am writing this small article about the works.
-
Complex Data Binding
by Dan Glass
Complex Data Binding a collection implementing IBindingList and ITypedList
-
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.
-
ListBoxHScroll class
by 10Tec Company
Adding the horizontal scroll bar to a list box dynamically taking into account its font (using the IFont interface) and the vertical scroll bar visibility (by analyzing the WS_VSCROLL flag of the listbox styles)
-
List Network Computers
by Jonathon Rossi
This source code will show you how to list all the computers on your local network
-
Virtual Stack
by Daniel Okely
This is an implementation of a stack.
-
Little Web Browser
by Michael H
A little web browser made from a JEditorPane and a JTextField and few JButtons. The code for the HyperlinkListener is straight from the api spec.
-
Display the Current Day of the Week
by David Nishimoto
How to display the current day of the week.