Click here to Skip to main content
15,884,177 members
Everything / Programming Languages / C# 2.0

C# 2.0

C#2.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
by Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
by Josh Smith
Reviews a pattern which enables new possibilities for data binding.

Latest Articles

by Shivprasad koirala
Design Pattern FAQ - Interview Questions (Quick Reference)
by Claudio Nicora
An extended NumericUpDown control with better focus and mouse wheel management.
by Toby Patke
Clearcove.Logging is a very simple logging library designed to meet most logging needs with straight-forward licensing terms.
by Alexander Iacobciuc
In this article you will find an implementation of a stream player control.

All Articles

Sort by Score

C# 2.0 

5 Jun 2008 by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
27 Jun 2009 by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
24 Aug 2009 by Waleed Elkot
Reading text from any image using Microsoft Office 2007 OCR
6 May 2007 by Josh Smith
Reviews a pattern which enables new possibilities for data binding.
26 Jun 2009 by Shivprasad koirala
A State Machine Workflow discussion.
27 Jun 2007 by Marek Stoj
ImmDoc .NET is a command-line utility for generating HTML documentation from a set of .NET assemblies and XML files created by the compiler.
30 Dec 2009 by Razan Paul (Raju)
Animation technique based on Clip property of UIelement in WPF
2 May 2007 by pmpdesign
A lightweight C# library to add images and 'round rectangles' to a PDF on the fly and then securely embed the PDF in a web page
3 Sep 2008 by Daniel Flower
A guide to writing a compiler in .NET for beginners, using Irony.
23 Apr 2009 by Jeff Karlson
Learn how to build the body part of your DataGrid using Silverlight and the GOA Toolkit. Implement Virtual Mode, work with hierarchical data, and build cells and cells navigation.
18 Apr 2010 by Nicholas Butler
A tiny HTTP server wrapped in a WebBrowser control
5 Nov 2008 by Tolgahan ALBAYRAK
Read, Write, Save INI files without using Windows APIs.
1 Jul 2009 by Muhammad Akhtar Shiekh
An article on "How to authenticate windows user using form authentication in ASP.NET?"
18 Sep 2006 by Tim Almdal
Implementing an Autoplay handler in C#.
19 Jul 2018 by Ajcek84
PSAM Control Library ported over to WPF
9 Jan 2008 by Mike Gavaghan
Vincenty's Formula is an iterative solution for calculating the distance and direction between two points along the surface of Earth.
14 Jul 2007 by Josh Smith
Demonstrates how to create unit tests for a class which uses a DispatcherTimer.
21 Apr 2009 by Lionel LASKE
Learn how to develop an application for the XO laptop - the OLPC project's machine - using Mono on Sugar OS.
1 Jan 2008 by Pedro Gomes
Reflection on generics can be complicated. This article shows how to use the DynamicMethod class to dynamically invoke a generic method.
11 Sep 2009 by yetibrain
A listview running in virtual mode
31 Oct 2007 by Bill Seddon
Shows how a .NET based WebDAV server can be created by combining two Open Source projects. The example implementation returns files from a file system, but you can extend it to return resources from any repository.
22 Jan 2009 by Sike Mullivan
Shows how to do XML serialization on a collection of multiple types when the types are not known.
10 May 2009 by DaveyM69
Allows changing of the default MIDI out device in Vista and Windows 7
18 Jun 2009 by Alessandro Lentini
This article is the second one of two articles in which I want to show a solution for the Print Preview of the DataGridView object. One of the goals of my solution is to print the DataGridView keeping its styles automatically.
11 Jun 2011 by Omar Al Zabir
A collection of ExtractionRules, ValidationRules, and Request Plugin that makes ASP.NET and AJAX website testing painless. No need to record tests, write parameterized tests using server-side control names, handle UpdatePanels, simulate clicks on buttons - all from Web Test.
27 Mar 2008 by Victor Nakoryakov
This article covers a selection of best practices related to the internals of the project “sandbox”. The sandbox is understood as a folder with a complete structure containing the source files of a specific product.
17 Aug 2009 by vic_ch2000
A nullable datetime column in .NET DataGrid with DateTimePicker.
8 Oct 2009 by Syed Hasan Hyder
This article focuses on internal supply chain management systems visibility via chart reports, and provides assessment apparatus to manage and monitor activities spawned during business processes, hence paves the way for timely and precise business decisions.
25 Jan 2013 by FatCatProgrammer
StarReport: WPF-less GDI+.NET report component.
11 Jan 2008 by eransha
The article briefly discusses deadlocks behavior, and presents an easy way to detect them.
5 Aug 2009 by Cosmin Oprea (aka somalezu)
This article describes a very simple way to make WinForms databindings without the need to refer the datasource property names with magic strings.
10 Sep 2009 by ralph1957
This step-by step article describes how to populate a TreeView control by using XML data.
9 Jun 2012 by FatCatProgrammer
Balanced Binary Search Tree (BST) (Search, Delete, PrintInOrder, PrintPreOrder, PrintPostOrder,DepthFirst, BreadthFirst, BalanceTree)
13 Jun 2011 by Ctznkane
The Array class already contains this capability with no casting required. The IndexOf method is a static one that returns the index of the value and a -1 if it doesn't exist.Here is an example:exists = Array.IndexOf(arr, "item") >= 0
15 Sep 2008 by Oleg Vorkunov
Set of SQL CLR Stored Procedures to execute T-SQL asynchronously without using a Service Broker.
27 Sep 2008 by Günther M. FOIDL
Class for encrypting/decrypting files using a Vernam chipher.
6 May 2009 by SprinterDave, Huisheng Chen
Parse and extract APNG frames to each PNG file
25 Jul 2009 by Stephen Cleary
Describes the ViewModel command classes in the Open-Source Nito.MVVM (WPF) library, and provides guidelines on their usage.
4 Sep 2007 by Brian Chavez
Slink is a code generating Framework that generates type safe URLs for ASP.NET. With Slink URLs, you increase code quality, increase maintainability, and get compile time checking of your URLs in all your ASPX pages (code-behind and non-codebehind).
12 Jul 2009 by Parag.Gadkari
17 Jul 2009 by eyedia
Sequential workflow as a WCF service. Create workflow custom activities, invoke child workflow from parent. Configure workflow runtime service using a config file. Basic idea of rules, creating a rule using the rule editor. Applying rules during runtime.
4 Feb 2010 by daylightdj
When using DisplayMember / ValueMember on a ComboBox, this problem often occurs.
22 Apr 2010 by Alexei Shamov
Convert types, parse and evaluate expressions in runtime, in .NET 2.0
9 Aug 2011 by #realJSOP
Go here [^]
17 Aug 2012 by Arman Aşçı
Parallel port data register control with C# .NET 2.0 and inpout32.dll.
4 Nov 2006 by Craig G. Wilson
How to flatten collections for an ObjectDataSource using the Adapter Pattern.
17 Feb 2008 by Brian P. Adams
A full-featured Task Manager for Windows Mobile.
31 May 2008 by Schmuli
Extends the System.ServiceProcess.ServiceController class to obtain the path to the process executable
2 Jul 2008 by Gilad Kapelushnik
Estimate the duration of an operation using linear regression
28 Dec 2008 by avsol
Use ASP.NET Routing to avoid 404 Not Found errors.
20 Jun 2011 by Kiran Sonawane
A trick when using Array.Contains()
25 Jul 2011 by Praveen Kullu
An Attribute changer which can change attributes of files and folders
3 Feb 2017 by tranthanhtu.vn
In "REST - Overview" article, I were introduced the basic rules in RESTful, Can you show me how to implement in WebApi?Ok, in this article, we will learn how to implement those rules in WebApi using C#.Where could I get sourcode was used in this article?Please checkout the code at https://github.com
11 Jun 2007 by Mahdi Abdulhamid
SharePoint 2007 Flash Animation Web Part
29 Nov 2008 by Radu Chirila
Debug tool for analyzing Session content in web applications.
13 Oct 2008 by CodingBruce
Pull metadata from a schema or generate XML mappers
19 Jun 2009 by Stephan Johnson
This is part II of a VII part series. This article covers the basics of what the Genesis Smart Client is and serves as required reading before reading parts III - VII
31 Aug 2009 by logicchild
An artilce that explains how to call external data and methods.
1 Aug 2009 by Corinna John
Encode a message as waypoints in a GPX file.
2 Aug 2009 by Abhishek Sur
Gives an introduction of how to create SQL CLR managed objects in SQL server.
17 Aug 2009 by Paw Jershauge
An easy to use ListView group sorter (very simple).
2 Feb 2010 by Sunny Ahuwanya
Set up failover and load balancing support for web applications that make use of the ASP.NET state server
23 Mar 2010 by AspDotNetDev
This version works regardless of parameters:public void AnyMethod(int parameter){ MethodInvoker wrapper = new MethodInvoker(delegate() { // Do your thing here! }); if (this.InvokeRequired) this.Invoke(wrapper); else wrapper();}Note also...
13 Mar 2011 by OriginalGriff
Don't. If you change the system date format you will:1) Annoy the heck out of your users - if an app did that to me, I would be extrememly annoyed.2) Probably break a lot of other apps, which rely on teh user knowing what date format to enter.Instead, use the format strings available...
21 Dec 2007 by Keng_Mycos
Using Amazon FPS as an alternate to Paypal and Google Checkout.
19 Dec 2007 by Bryan Sachdeva
This article describes how to create a wrapper class for the native Phone API, and then uses it to retrieve and store the call history.
4 Jun 2009 by logicchild
This article is meant to sort through and explain some of the complexities in threading.
25 Oct 2010 by RaviRanjanKr
use given code in FormClosing event of Forme.Cancel = true; base.OnClosing(e);
19 Jun 2012 by Burak Ozdiken
How to make a custom panel control like in Visual Studio 2008 for a Windows Forms Application using the .NET Framework.
30 Sep 2013 by Md. Rashim Uddin
How to download different types of files in asp.net
24 Jan 2015 by shijo joseph
A file backup manager with simple user interface and all the essential functionalities.
23 Aug 2008 by legcsabi
How to hide UI elements of a FontDialog (e.g., Font Size).
9 Jan 2009 by pablodg
Workaround to get the correct LocalDateTime of files no matter which date settings your computer has.
26 Jan 2009 by Sike Mullivan
Demonstrates retrieving schema and importing to SharePoint via Web Services and RPC.
1 Mar 2009 by Mohammad Said Hefny
Using ICSharpCode.SharpDevelop.Refactoring.RefactoringService.FindReferences to find all references in a given project
16 Feb 2010 by Pranay Rana
Following is code by which you get time in (HH:SS:MM) formate by passing second as argument public string getFormattedTimeFromSecond(double second) { TimeSpan t = TimeSpan.FromSeconds(second); string formatedTime = string.Format("{0:D2}H:{1:D2}M:{2:D2}S", ...
31 Jan 2011 by shakil0304003
Register Textbox KeyPressEventprivate void textBox1_KeyPress(object sender, KeyPressEventArgs e){// Allows only Alpha-Numeric’sif (!(Char.IsLetter(e.KeyChar) || Char.IsDigit(e.KeyChar) || Char.IsControl (e.KeyChar)))e.Handled = true;}
27 Jun 2012 by Wonde Tadesse
See this CodeProject article.Updating the UI from a thread - The simplest way[^]
16 Aug 2012 by Espen Harlinn
One thing you should probably consider is to use CTEs to perform paging when the table gets bigger - have a look at Data Paging Using CTE (Common Table Expression)[^]This will allow you to browse the full table, even if you end up having a 100 million records or more.Best regardsEspen...
21 Jan 2013 by Kerem Guemruekcue
This short article shows how to use an undocumented internal class method from the System.Deployment.Application.Win32InterOp namespace to get a PE images manifest resource.
2 Sep 2008 by Derek Burnett
Creating classes that model an RSS, in C#
2 Sep 2009 by Eric Haddan
My entry to the Code Lean and Mean File Comparison Contest.
11 Jan 2010 by CPallini
From documentation (MSDN [^]):A static constructor is used to initialize any static data, or to perform a particular action that needs performed once only. It is called automatically before the first instance is created or any static members are referenced.Your instance constructor (i.e....
9 Apr 2010 by Sean Goodpasture
A look at how to compile and use the Xapian search technology on Windows, and its pitfalls.
6 May 2010 by c2423
How to set up the COCO/R compiler with Visual Studio
19 Oct 2010 by Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
25 Dec 2010 by Abhinav S
You have used the new keyword while defining the constructor in C.That 'breaks away' from the original inheritance hierarchy.The most overridden method that A finds is B's WhoAreYou() as C and D's WhoAreYou() are in a different hierarchy.
12 Feb 2011 by Shahin Khorshidnia
Hi,I've written a tip and I think it can help.How to generate many random various numbers?[^]briefly://C#public static int RandomNumber(ref List numbers, Random random){ int count = numbers.Count; int randomIndex = random.Next(0, count); int returnedNumber =...
31 Mar 2011 by Olivier Levrey
From C# code:- If you want to pass a string as input parameter, use string type.- If you want to pass a string and modify its content, then use StringBuilder type.public class LibTest{ //and don't forget to tell how big is your buffer [DllImport("LibTest")] private...
28 Apr 2015 by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
25 May 2015 by Maciej Los
I'd suggest to start here:Creating Resource Files for Desktop Apps[^]Working with .resx Files Programmatically[^]
3 Sep 2015 by OriginalGriff
First of, never fetch DateTime.Now more than once: it leads to intermittent problem around midnight which can really mess you up. Fetch it once, and use it for all checks.Then try:DateTime now = DateTime.Now;var receiveDetails = objDB.GetAllReceivedDetails().Where(a =>...
24 Aug 2018 by darkoman
C# implementation of the serverless OLAP engine
30 Dec 2007 by AGD-H
Knit is a Visual Studio add-in tool that allows a developer to apply multi-step patterns to solution and assembly meta-data.
24 Dec 2008 by Flamewave4
A phone number structure that can be used for parsing, validating, and normalizing phone numbers.