Click here to Skip to main content
15,946,320 members
This competition has ended

Best C# article of January 2012

Contribute to CodeProject and you'll automatically be in the running for a monthly prize!

Each month at CodeProject we gather together the best of the articles submitted the previous month and ask our readers to choose the best of the best. Entry is automatic - just submit you articke and we'll do the rest.

Check out the submission guidelines for information on posting articles.

Current Entries

Articles that match the contest criteria are automatically entered. The top 50 entries are shown.

Please Sign up or sign in to vote.
25 Jan 2012Sebastian Krysmanski
The help page for IDisposable provides the code for IDisposable's default implementation pattern in C#. This article will explain each part of it step by step and also provide the equivalent C++/CLI code in each step.
Please Sign up or sign in to vote.
15 Jul 2014Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
Please Sign up or sign in to vote.
13 Jan 2012MarkLTX
A subclass of the WPF TextBox control that displays an ellipsis when the text doesn't fit.
Please Sign up or sign in to vote.
19 Dec 2019Dan-el Khen
Sample code on building a client-side Grid control in C# using SharpKit
Please Sign up or sign in to vote.
3 Jan 2012Clifford Nelson
An enumeration RadioButtion ListBox control.
Please Sign up or sign in to vote.
13 Jan 2012baruchl
How to setup .NET symbol server and enable production debugging without source code
Please Sign up or sign in to vote.
19 Jan 2012Clifford Nelson
This value converter makes it very quick and easy to add the ability for the user to input equations in text boxes that are bound to numeric properties.
Please Sign up or sign in to vote.
21 Feb 2012Daniel Miller
This article describes the steps to re-configure SQL Server so that queries return accent-insensitive results. It includes source code (using Microsoft SQL Server 2008 R2 Shared Management Objects) to automate some of the steps in this procedure.
Please Sign up or sign in to vote.
21 Jan 2013kosmoh
An introduction to a special type of Moving average, which considers not the last N events, but the last events that happened in the given time interval.
Please Sign up or sign in to vote.
3 Jan 2012thatraja
Check this jQuery alternativejqlog - A logging framework plugin for jQuery[^]
Please Sign up or sign in to vote.
23 Jan 2012Gil Yoder
In this article, I describe how to display data from a simple XML file in a WPF TreeView control.
Please Sign up or sign in to vote.
9 Jan 2012Grasshopper.iics
Can't we have something as below?int n=(s.Split(new char[]{'\n'})).Length;where n is the number of lines?
Please Sign up or sign in to vote.
3 Jan 2013Young Ye
This article is the part 3 of the data display Performance Optimization series. It talks about performing multiple searches against the virtual list.
Please Sign up or sign in to vote.
15 Jan 2012VIBlend
WinForms Button
Please Sign up or sign in to vote.
19 Jul 2013Mikhail-T
How to convert string to text file and return it back to user as a result of a controller action
Please Sign up or sign in to vote.
21 Jan 2012Nicolas Dorier
Access xaml resources in a strongly typed way
Please Sign up or sign in to vote.
27 Jan 2012CooperWu
A framework designed for support upgrade components in service without stop running
Please Sign up or sign in to vote.
8 Jan 2012Bill SerGio, The Infomercial King
Resizable Skins Made from Web Pages with Video
Please Sign up or sign in to vote.
3 Jan 2013Young Ye
This article solve the performance issue while loading and displaying large amounts of data by using a virtual list with paged data technique.
Please Sign up or sign in to vote.
25 Jan 2012Sion Cohen
An elegant programmatic solution for having multiple indexers in C#
Please Sign up or sign in to vote.
16 Jan 2012Wahid Bitar
Get the DropDownList items at OnResultExecuting
Please Sign up or sign in to vote.
7 Jan 2012Oleg Shilo
While leaving aside the performance penalties, it is a reasonable approach to make code cleaner.Though you can further benefit from the extension methods:public static void InitDefaults(this object o){ PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public |...
Please Sign up or sign in to vote.
8 Jan 2012Alеksey Nemiro
The Silverlight File Manager on the ListBox control based universal server handler may be working on the ASP .NET WebForms and MVC projects. All requests are sent asynchronously via helper class.
Please Sign up or sign in to vote.
25 Jan 2012Henry He
In this article, I will use Interpreter Pattern to design a business expression
Please Sign up or sign in to vote.
29 Jan 2012rish_wins
Office Documents View using TreeView
Please Sign up or sign in to vote.
1 Jan 2012Petr Ivankov
Testing of complicated scientific tasks
Please Sign up or sign in to vote.
6 Jan 2012Jarek Kruza
A series about experimenting with Kinect for Windows SDK.
Please Sign up or sign in to vote.
8 Jan 2012ozkary
WCF Web Service Call to Another WCF Web Service returns no data
Please Sign up or sign in to vote.
9 Jan 2012saboor awan
Google Directions API Polyline Points Decoder in C#
Please Sign up or sign in to vote.
3 Jan 2013Young Ye
This article is Part 2 of the data display performance optimizing series. The Selectable Virtual List is a list where you can select individual items in the list, and move it out or in to the list. You can also use the select all checkbox to select all items in the list.
Please Sign up or sign in to vote.
13 Jan 2012Grasshopper.iics 4 alternatives  
Simple way of converting RGB Image to Gray Scale Image without using any pointers
Please Sign up or sign in to vote.
20 Jan 2012Dirk Bahle
I have posted a recent article on the ProgressViewModel to show a software design that can be used for background processing in C# 4.0. This article extends that design with the ability to ouput more than one progress.
Please Sign up or sign in to vote.
20 Jan 2012Richard James Moss
How to extend the ImageBox control to be able to display PDF files with the help of the GhostScript library and the conversion library
Please Sign up or sign in to vote.
25 Jan 2012Dean Oliver 4 alternatives  
An alternative to Activator.CreateInstance
Please Sign up or sign in to vote.
27 Jan 2012Jarrey
Attached Command for Windows 8 Metro Style in C#
Please Sign up or sign in to vote.
13 Jan 2012C Yang
Program to Switch Screen Setting In One Click
Please Sign up or sign in to vote.
15 Jan 2012VIBlend
In this post, we will show you how to use the cells merge functionality of VIBlend DataGridView for WinForms.
Please Sign up or sign in to vote.
16 Jan 2012Inaki Ayucar
How to find the external IP address of your machine, with a timeout, in C#.
Please Sign up or sign in to vote.
18 Jan 2012johannesnestler
Very good tip. I just want to mention an alternative - you can just change your project output type to a console application. (You can undo it later if only needed for debugging). So if you started with a Windows Forms project in Visual Studio: Go to project properties/application/ and in the...
Please Sign up or sign in to vote.
24 Jan 2012Felice Pollano
Listed here are 5 interesting uses of Linq.Expression without writing a LinqToSomething provider, of course.
Please Sign up or sign in to vote.
24 Jan 2012Dhanushka Madushan lk
Drawing on picture box images
Please Sign up or sign in to vote.
28 Jan 2012Gil.Schmidt
How to move a wcf msmq message from an outgoing queue to another outgoing queue.
Please Sign up or sign in to vote.
27 Jan 2012Samer Aburabie
Fluent NHibernate Automapping for Unidirectional ManyToMany relationship
Please Sign up or sign in to vote.
14 Sep 2012Richard James Moss
A brief article into how to use a C# library that converts BBCode used by popular forums into HTML
Please Sign up or sign in to vote.
4 Feb 2012Dan Randolph
How to Export data in a to a "comma separated values" file using the built-in browser Open/Save feature
Please Sign up or sign in to vote.
29 Jan 2012Richard James Moss
This post describes how to create a GroupBox control similar to those used in Microsoft Outlook
Please Sign up or sign in to vote.
23 Jan 2012Richard James Moss
Enabling shell styles for the ListView and TreeView controls in C#
Please Sign up or sign in to vote.
2 Jan 2012MadhurimaS
A component which can be plugged to a WCF service or any other client to utilize AppFabric caching features
Please Sign up or sign in to vote.
3 Jan 2012JasonShort
Speed up blocking functions with PLINQ
Please Sign up or sign in to vote.
21 Jan 2012Weidong Shen
This article describes how to do data validation with Self-Tracking Entity Generator for WPF/Silverlight.

Current Participants

Those with articles that match the contest criteria are automatically entered.

Web Developer Kbyte.Ru
Russian Federation Russian Federation
Started programming in 1998 on the G-Basic and QBasic.

At various times worked with programming languages and technologies: Visaul Basic, Delphi, C, Visual C++, Java, PHP, ASP VBScript and JScript.

Currently engaged in programming based on .NET Framework technologies. Mainly the development of websites on the ASP.NET MVC, C#, TypeScript, SCSS and also database programming (SQL Server and PostgreSQL).

In 2016 started the AdminStock.net - solutions for administrators.
Team Leader Intel
Israel Israel
I've been around at Intel for about 13 years, developing and leading SW information system projects.

I have extended experience in .NET (C#) and SQL development.

I'm currently located at OR for a 2Y assignmentOur current development environment is .NET 4.0 and SQL2008, we are using WPF 4.0 for UI, EF4 for data manipulation and WCF 4.0 for communicating from the client to the server.

Love design patterns and cool looking code.

Motto: "Are we having fun or what?"
CEO GeminiGroup TV, Inc.
United States United States
Bill SerGio is a highly accomplished individual, recognized in prestigious publications such as Marquis Who's Who in America and Who's Who in Advertising. With a background in software development and producing and directing famous celebrity infomercials, he has amassed a considerable fortune through television and licensing his software. Currently, he is deeply invested in developing anti-gravity technology using artificial intelligence, as well as utilizing AI for research into finding new cures for diseases such as cancer. In addition, he is also an investor in new movies, demonstrating a wide-ranging and diversified interest in various fields.
United States United States
A program analyst specialize in XML/HTML/CSS, Office Automation and Oracle Database.

A hobbyist of computer science. My favorite languages are C# and C++, but I also like to code in Ruby, Perl, Java, Python, Basic and SQL script.
Software Developer (Senior) Clifford Nelson Consulting
United States United States
Has been working as a C# developer on contract for the last several years, including 3 years at Microsoft. Previously worked with Visual Basic and Microsoft Access VBA, and have developed code for Word, Excel and Outlook. Started working with WPF in 2007 when part of the Microsoft WPF team. For the last eight years has been working primarily as a senior WPF/C# and Silverlight/C# developer. Currently working as WPF developer with BioNano Genomics in San Diego, CA redesigning their UI for their camera system. he can be reached at qck1@hotmail.com.
Software Developer (Senior)
China China
I started to programming in 2002, started when I was grade 2 in university, I participated some part-time projects at that time, I have much experiences on Windows, includes C#, ASP.NET, Visual Basic, Visual C++, AJAX, Power Shell Script, JavaScript, XML..etc, I am learning design and architect.
Software Developer (Senior) Delcan
United States United States
Dan Randolph is currently a Web Applications Developer with Delcan. Mr. Randolph has a B.S. dergee in Computer Science from the University of Wyoming. He is an active member of the Denver Visual Studio User Group. You can find him posting in the forums on [code.]msdn.microsoft.com and Code Project.
Architect SharpKit
Israel Israel
Founder of SharpKit
Chief Technology Officer Shift iQ
Canada Canada
I have been building software systems for more than 20 years, working for organizations that range from small non-profit associations in my local community to global Fortune 500 enterprises.

I specialize in the design and implementation of online database solutions. My work-related research interests include software design patterns and information architecture.
Software Developer BBD Johannesburg
South Africa South Africa
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.
Software Developer
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Germany Germany
The Windows Presentation Foundation (WPF) and C# are among my favorites and so I developed Edi

and a few other projects on GitHub. I am normally an algorithms and structure type but WPF has such interesting UI sides that I cannot help myself but get into it.

https://de.linkedin.com/in/dirkbahle
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Yoder's List
United States United States
Gil Yoder is an application performance analyst at Chevron. He has been working in their IT organization for about fifteen years. Before Chevron computer technology was more hobby than profession for him. He still considers it a hobby and enjoys learning about all of its aspects.

He starting learning how to program on a TRS-80 Model I computer with 4K RAM and 4K ROM. Those who can remember those days know that the 4K ROM contained all of the "OS" for the computer, and somewhat crippled version of Microsoft BASIC.

After a while he was able to upgrade the computer so that eventually he had a fully loaded 64K system, 48K RAM, and 16K ROM. With that he learned to program in BASIC and Z80 Assembly Language. He sold his first machine language program to 80-Micro Magazine (shortly before it folded) for $500. The program was a Z80 Debugger that sported a feature allowing single stepping within ROM.

At this time most of Yoder's free time is spent programming and learning about C#, WPF, SilverLight, MVVM, and other related technologies.

Mr. Yoder lives in a small suburb of Houston, TX with his wife. He and his wife have one daughter who is married and has two wonderful boys. Yoder looks forward to the day he can teach his grandsons how to design and create WPF controls.
Team Leader
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
CEO Integrated Ideas
India India
gasshopper.iics is a group of like minded programmers and learners in codeproject. The basic objective is to keep in touch and be notified while a member contributes an article, to check out with technology and share what we know. We are the "students" of codeproject.

This group is managed by Rupam Das, an active author here. Other Notable members include Ranjan who extends his helping hands to invaluable number of authors in their articles and writes some great articles himself.

Rupam Das is mentor of Grasshopper Network,founder and CEO of Integrated Ideas Consultancy Services, a research consultancy firm in India. He has been part of projects in several technologies including Matlab, C#, Android, OpenCV, Drupal, Omnet++, legacy C, vb, gcc, NS-2, Arduino, Raspberry-PI. Off late he has made peace with the fact that he loves C# more than anything else but is still struck in legacy style of coding.
Rupam loves algorithm and prefers Image processing, Artificial Intelligence and Bio-medical Engineering over other technologies.

He is frustrated with his poor writing and "grammer" skills but happy that coding polishes these frustrations.
This is a Organisation

115 members
Software Developer (Senior)
United States United States
Senior Software Developer from New Jersey, USA

Have 15+ years experience on enterprise application development with various technologies.
Software Developer (Senior)
Spain Spain
Inaki Ayucar is a Microsoft MVP in DirectX/XNA, and a software engineer involved in development since his first Spectrum 48k, in the year 1987. He is the founder and chief developer of The Simax Project (www.simaxvirt.com) and is very interested in DirectX/XNA, physics, game development, simulation, C++ and C#.

His blog is: http://graphicdna.blogspot.com

To contact Inaki: iayucar@simax.es
Flextronics
Poland Poland
Programming since 10 years old with first commercial app sold in age of 16.

In past got Bachelor's degree in Computer Sciences and worked as Linux administrator and software developer.

Currently slightly over 30 and working as IT Project Manager for Flextronics.

Still coding for fun and/or money.
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
I hold a PhD in computer science, and have been a practicing developer since the early 90's.

I used to be the owner for VistaDB, but sold the product to another company in August 2010.

I have recently moved to Redmond and now work for Microsoft. Any posts or articles are purely my own opinions, and not the opinions of my employer.
Austria Austria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer Crypton-M
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
Mark Lauritsen has been a software developer since 1983, starting at IBM and using a variety of languages including PL/1, Pascal, REXX, Ada, C/C++ and C#. Mark currently works at a midstream energy company developing Windows services and desktop applications in C#.
Web Developer
United States United States
Coding is awesome!
Software Developer Freelance
France France
I am currently the CTO of Metaco, we are leveraging the Bitcoin Blockchain for delivering financial services.

I also developed a tool to make IaaS on Azure more easy to use IaaS Management Studio.

If you want to contact me, go this way Smile | :)
Program Manager
Australia Australia
I was born in Ukraine. After completing the university degree worked there as a Research Chemist. Last 23 years I live in Australia where I've got my second qualification as a Software Engineer.

"I am the lucky one: I do enjoy what I am doing!"
Architect OG-BITechnologies
United States United States
Software engineer, author & speaker who enjoys mentoring, learning, speaking and sharing with others about software development technologies. Microsoft MVP.

My Blog
Architect
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators http://dinamika-avia.com/ . His additional interests are:

1) Noncommutative geometry

http://front.math.ucdavis.edu/author/P.Ivankov

2) Literary work (Russian only)

http://zhurnal.lib.ru/editors/3/3d_m/

3) Scientific articles
http://arxiv.org/find/all/1/au:+Ivankov_Petr/0/1/0/all/0/1
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
Pakistan Pakistan
Expertise on Enterprise solutions, Mobile Apps & Services based applications on .NET platform. As Sr. Software Engineer, I have worked on variety of technologies like ASP.NET MVC, MS Windows Phone 7, WCF, and MS SharePoint 2010, MS Dynamics CRM.
Architect
Jordan Jordan
Samer is a Computer and Digital Electronics Engineer who lives in Abu Dhabi UAE, worked on a fair number of personal projects as part of fun or freelancing, mostly related to integration between hardware and software (e.g Security Systems, Sensors, Cameras, Bluetooth ... etc), which gave him a powerful knowledge in this area and the ability to invent various complex designs to adhere for external elements effect those systems.

Through his career path he worked on a fair number of enterprise projects with well known software companies, which showed him the various aspects of an enterprise applications.

You may contact Samer through his e-mail: SamerX@outlook.com or Twitter: SamerX as well.
Software Developer University of Stuttgart
Germany Germany
I have studied Software Engineering and am currently working at the University of Stuttgart, Germany.

I have been programming for many years and have a background in C++, C#, Java, Python and web languages (HTML, CSS, JavaScript).
Architect
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer
United States United States
Born on 86, had my first computer at the age of 8, wrote my first code at the age of 15(pascal), began to study software engineering at 2005 and graduated in 2010. I have a dev blog www.vasilydev.blogspot.com. My real passion is 3D game programming and playing guitar. I've programmed stuff in C#, python, Delphi, PHP, C++, JS, QT and others...
VIBlend
United States United States
VIBlend designs and develops advanced components and controls for Windows platform
This is a Organisation

7 members
Technical Lead Digital Wink
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
Weidong has been an information system professional since 1990. He has a Master's degree in Computer Science, and is currently a MCSD .NET
Software Developer (Senior)
Canada Canada
I am a passionated software developer / engineer with strong desire to develop in a simple, fast, beautiful way with the skillset such as simple design, refactoring, TDD. i worked in J2EE for about 5 years, now i work as a .NET devleoper.
You must sign in to participate in this contest.
This contest has ended.
1 Jan - 31 Jan 2012