C# Corner

Resources  
  • Yahtzee Program using C#Jan 24, 2000. The Visual C# environment has given the programmer the ability to create applications in RAD mode without the steep learning curve for the C++ programmer. (I do miss templates though!). The above application, yahtzee, is based on a popular poker-like dice game.
  • Using Microsoft Message Queues to build Scalable SolutionsApr 12, 2001. This tutorial shows you how to create, send, and received messages using MSMQ from the .NET base class library (System.Messaging) and C#.
  • Creating a Login User ControlApr 16, 2001. In this article, we have started with an introduction to the UserControl and have learnt to use the ADO+ DataReader.As we seen User Controls simplifies several common Web application scenarios.User Controls allow developers to easily define custom controls using the same programming techniques for writing Web Forms.
  • A Lottery Program in C#May 05, 2001. I am learning C# in any spare time I have and instead of diving in and writing a monster program I thought a nice introduction would be good.
  • Time Ticker2Jul 04, 2001. Microsoft had made lot of Changes for Beta2, some of the changes are old Namespace such as System.WinForms modified to System.Windows.Forms. In addition no. of new Namespaces like Microsoft.CSharp, Microsoft.JScript, Microsoft.Vsa etc...
  • Working with ReflectionJul 05, 2001. This article is about the use of reflection package in Csharp. Through Reflection we can get Information about the class.
  • C# foreach loopJul 24, 2001. This article demonstrates how to use foreach loop in C#.
  • XML GeneratorAug 17, 2001. This article is about advance use of reflection package in Csharp.
  • C# TokenizerAug 27, 2001. A simple tokenizer in csharp without using regex or MatchCollections.
  • Simple Game Developed in C#Sep 03, 2001. This article contains the code for a simple game developed using csharp. This game is all about arranging the shuffled numbers in ascending order.
  • Query BuilderOct 17, 2001. This application is that of a QueryBuilder in CSharp.This application is for Beta2 SDK version of DotNetFramework.
  • Reading and Writing XML in C#Oct 29, 2001. In this tutorial, you will learn how to read and write XML documents in Microsoft .NET using C# language.
  • Using MS Agent in C#-Part-I(Text To Speech)Jan 15, 2002. This article explains how to use MS Agent to write text-to-speech applications using C# and .NET.
  • Some situtions where one may like to use ILJan 29, 2002. This article requires knowledge of IL or at least desire to learn it. My intention is to give few illustrations where usage of IL is possible or only option.
  • .NET Framework and Web Services - Part 2Jan 29, 2002. Here we are going to learn how to create a WebService using VS.NET (using VB.NET.) and consume the Webservice from VB.NET Client. This Article is based on VS.NET RC1 Release.
  • Multithreading Part I: Multithreading and MultitaskingApr 08, 2002. In this and a series of articles that would follow, we would learn about threads and how to write multi-threaded programs in C#.
  • BlackJackOct 10, 2002. So as a learning experience, I decided to try writing a Blackjack game.
  • String in C#Feb 05, 2003. In this article, you will learn how to work with strings in C#. The article discusses the String class, its methods and properties and how to use them.
  • PERST: A Simple, Fast, Convenient Object Oriented DatabaseMar 05, 2003. PERST is a simple Object-Oriented Database implemented with pure C-Sharp and Java implementations.
  • Link Fetcher ServiceMar 06, 2003. In this article we will learn how to create a Web Service that fetches all the links from a given URL.
  • Opening and Viewing Text and Image FilesMar 08, 2003. We will start this article with a simple application where we will learn how to open and view text and image files using the OpenFileDialog class. In doing so, we will learn some basics of GDI+ drawing, menus and panel control.
  • CSLint: Deadlock Detector for C#Mar 12, 2003. This is a deadlock detector for CSharp programs. It builds a lock graph for the application and searches loops in the graph.
  • Extending Your Working Environment in Visual Studio - AdvancedApr 24, 2003. In my previous article, you learned about how to create wizards and some simple objects such as DTE, Solutions, Project and Project Item. These objects help us to customize our Visual Studio working environment.
  • Extending Your Working Environment in Visual Studio - AdvancedApr 24, 2003. In my previous article, you learned about how to create wizards and some simple objects such as DTE, Solutions, Project and Project Item. These objects help us to customize our Visual Studio working environment.
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NETJun 18, 2003. The Application is a simple Windows Form program that allows you to open and save the text files edited in the rich edit control, as well as print them out. The program takes advantage of a “syntax” text file for PHP which lists the functions and keywords contained in the PHP language.
  • Airplane War 0.2Jun 24, 2003. This is a very basic flight simulator designed in c# and directx 9 which was released yesterday. It is expected to be buggy but has enough information to allow you to learn about the new directx 9 managed code.
  • C# Methods : Part II Jul 07, 2003. This article completes our discussion of methods. In this article, you will learn parameter passing, reference and value type parameters, and method overloading.
  • Introduction to C# Methods - Part1Jul 07, 2003. In this article, you will learn about C# methods and how to implement and use methods in a class.
  • MyQueue in C#Jan 09, 2004. This article attempts to explain the how MSMQ can be implemented between two forms and the very basics of message queuing.
  • DataTable in C#Feb 17, 2004. The ADO.NET DataSet is a data construct that can contain several relational rowsets, the relations that link those rowsets, and the metadata for each rowset. The DataSet also tracks which fields have changed, their new values and their original values, and can store custom information in its Extended Properties collection. The DataSet can be exported to XML or created from an XML document, thus enabling increased interoperability between applications.
  • Learning Visual Studio 2005 IDE - The DesignerJun 07, 2004. In this article of Learning Visual Studio 2005 IDE series, I will explore some of the designer features and the breakdown of the classes of a Windows Forms project.
  • Learning Visual Studio 2005 IDE - Main IDEJun 07, 2004. In this article of Learning Visual Studio 2005 IDE series, I will explore some of the designer features and the breakdown of the classes of a Windows Forms project.
  • Microsoft CRM Development: SDK, C#, SQL, Exchange, Integration, Crystal ReportsAug 04, 2004. In this article, as a software developer, database administrator or a web designer, you will learn how to customize Microsoft CRM according to your needs.
  • Crystal Reports - Geterogeneus databases: SQL Server, Oracle, Unidata, BtrieveAug 24, 2004. Crystal Reports is the most flexible tool on the market and it has market recognition. Multiple software vendors offer Crystal Reports as the main reporting tool: Microsoft, Best Software, Oracle to name a few. In this article, you learn some tips on using Crystal Reports versus other options.
  • An in-depth look at WMI and Instrumentation: Part IISep 18, 2004. In this second part of the series, you will learn how to work with WMI classes and class instances, and then demonstrates the wealth of information available through the Win32 and IIS WMI providers.
  • A Chess Program using C#Nov 29, 2004. This is a chess program, made using C#. It has used object oriented concepts and design patterns like Flyweight, Factory and Decorator. Two player can play this game and it has facility to drag-drop pieces. It also shows potential positions of each pieces which is useful for learning.
  • Passing Values between User Controls and ASPX PageJan 20, 2005. This article is for beginners who are learning. NET. This will be really helpful for them. Beginners will be wondered how to pass values between User Controls and ASPX page .In this article I have listed some of the ways through which you can access and set the User control values in an ASPX page.
  • AI: Population based Incremental Learning in C# and .NETMay 22, 2005. In this article I would like to discuss another offshoot of the genetic algorithm called Population Based Incremental Learning (PBIL).
  • Learning Visual Studio 2005 IDE - Integrated FxCop and Accessibility OptionsJul 23, 2005. Visual Studio 2005 IDE brings you many new and updated features and Project Properties dialog is one of the areas where you will see some new additions. In this article, I will discuss Accessibility and FxCop features of Project Properties dialog.
  • Learning Visual Studio 2005 IDE - Quick Access to Active Tool Windows and FilesJul 31, 2005. One of the coolest feature in Visual Studio 2005 I like is quick access to all active Windows and Files and switing control between them.
  • Convert a Comma Delimited String to an Array in C#Aug 01, 2005. This article shows how to convert an array to a comma delimited string in C#.
  • Learning Visual Studio 2005 IDE - Document Outline in Windows Forms 2.0Aug 02, 2005. We all have seen Document Outline feature in Visual Studio 2003, which allows ASP.NET developers to select a control on a Web Form and in code editor, it would select the code respective to that control.
  • How do I Convert a String to an Enum Value?Sep 10, 2005. In this How do I, you will learn how to convert a string to an enum value in C#.
  • Hashtable in C#Nov 14, 2005. Hashtable is useful when you need to store data in a key and value pair. This article shows how to use hashtable in C#.
  • Revised Generic 'T, K' Database ComponentDec 20, 2005. This is the code behind the Generic 'T, K' Database Component.
  • Portscanning for Kazaa using C# SocketsJan 01, 2006. In this article, you will learn how to write c# code to scan a host computer, and determine if it is running Kazaa, the popular P2P file sharing program.
  • Learning Delegates in C#, an IntroductionJan 03, 2006. There is this thing in C# called a delegate, which is going to be crucial to build interactions between our objects. What’s a delegate, you ask? Good question. A delegate is a pointer to a method. What’s that mean? Just like you can pass variable by reference, you can pass a reference to a method. Let me give you an example.
  • Testing project using NUnitJan 20, 2006. This article is for the begineers who wish to learn the basics of NUnit.
  • Wrapper Patterns in C#, Part III: The Decorator PatternFeb 15, 2006. Did you ever wish for a superhuman power to be impervious to bullets or travel outside your body? How about the superpower to be able to breathe underwater or fly? Or how about a changing the way you look so you can disguise yourself as anyone, or anything? In this series of four articles, we will travel down the C# rabbit hole and see how it is all possible with some wrapper patterns: Proxy, Decorator, and Adapter.
  • Wrapper Patterns in C#, Part IV: The Adapter PatternFeb 16, 2006. In this series of four articles, we will travel down the C# rabbit hole and see how it is all possible with some wrapper patterns: Proxy, Decorator, and Adapter.
  • The C# Value Type and BoxingFeb 17, 2006. Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications. One of the things we need to be aware of is how the Common Language Runtime (CLR) deals with references to value types.
  • New features in C# 2.0Feb 18, 2006. In this article, I will learn about and use the new features in C# 2.0 added by the Microsoft designers, such as generics, anonymous methods, partial types, static classes, nullable types, and limiting access to properties.
  • MVC architecture in ASP.Net using C# and Microsoft Data Access Application blockFeb 28, 2006. In this article we will learn how to use Microsoft Data Access Application block in ASP.Net using C#, I have used Microsoft Data Access Application block in conjunction with MVC architecture, here you will learn lot about class libraries, interface, implementation etc.
  • DataSource controls in .NET 2.0Mar 04, 2006. In this article, we're going to learn how to connect a database for querying data and binding the result set to ASP.NET controls in a very easy way with no looping or control manipulation required, thus avoiding writing any data source code.
  • C# Interface Based DevelopmentMar 06, 2006. When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Interfaced-based design provides loose coupling, true component-based programming, easier maintainability and it makes code reuse much more accessible because implementation is separated from the interface.
  • Add some elegance to your code using C# ListMar 31, 2006. A short and to-the-point tutorial that demonstrates how to sort and search using List in C#.
  • C# Defensive Event Publishing Using InterfacesApr 03, 2006. This article explains how to use interfaces for C# Defensive Event Publishing.
  • Data mining and SQL Server 2005Apr 11, 2006. Data mining is a key member in the Business Intelligence (BI) product family in SQL Server 2005 . Data mining is about analyzing data and finding hidden patterns using automatic or semiautomatic means, which can be explored for valuable information. It is about learning the characteristics of data set, which are not possible to discover by simple seeing.
  • Top 10 Reasons to Switch from Java to Visual C#Jun 03, 2006. This article details the major reasons for Java programmers to consider switching from the Java language to Visual C#.
  • The Realization of WS-Security Related Specifications by WSE 3.0.Sep 18, 2006. In this article, we are going to learn the basic concepts of WS-Security related specifications and how they are implemented by Microsoft Web Service Enhancements 3.0 technology.
  • Pull a column value from another list in your site in Sharepoint Portal ServerSep 21, 2006. In document and form libraries, you can create custom columns or metadata properties and interestingly, you can autopopulate these columns with data that can be hardcoded or extracted from other lists that are part of the same site where your document library is located.
  • Simple Password Encryption ProgramOct 31, 2006. This article shows you how to make a simple password encryption program.
  • C# Introduction to Fuzzy Computing: Part INov 15, 2006. Boolean logic often fails to adequately simulate real-world conditions because things are never simply just black and white (or zeroes and ones) but exist in millions of shades of grey. This article is a brief introduction to the subject of fuzzy computing through demonstration of a few of the core principles using a fuzzy controller.
  • Dynamic Code CompilationNov 30, 2006. This article throws light on how a code can be built dynamically, compiled and run.
  • Getting Started with AJAX 1.0Feb 09, 2007. After fruition of this article, you will have a better understanding of AJAX 1.0 extensions and will learn how to build AJAX enabled Web applications using ASP.NET 2.0 and Visual Studio 2005.
  • Using a Genetic Algorithm to Do Consultant Scheduling in C#Apr 09, 2007. This article describes a way to use a type of genetic algorithm called PBIL (Population Based Incremenetal Learning) to optimize the scheduling of consultants on a group of 5 project.
  • Programming XAML - A Quick StartApr 10, 2007. XAML is a new descriptive programming language that is used to define user interfaces in WPF, Silverlight and Windows 8 Metro Style Apps. This article is an introduction to XAML.
  • Building Reports from XML Documents using ReportViewerApr 19, 2007. In this step-by-step tutorial, you will learn how to create reports from an XML document using the ReportViewer control and Visual Studio 2005.
  • Building Reports from a DataSet using ReportViewerApr 27, 2007. In this step-by-step tutorial, you will learn how to create reports from a Database using a DataSet, the ReportViewer control and Visual Studio 2005.
  • Star Trek -Part II: Adding moving 3D Objects to your XNA GameMay 06, 2007. This article describes how to work with 3D Objects in your XNA game. In the article you will learn how to add a rotating planet to Star Trek to enhance the background. It also talks about how to add text to your game.
  • Word automation using C#May 11, 2007. Word Automation through C# is all about programmatically generating the Word Document using C# code. Almost all of the tasks which we perform on word 2003 can be done programmatically using C# or VB.
  • Printing Text File in C#Jun 07, 2007. In this article, you will learn how to print a text file in C#. The attached project lets you browse and open a text file and print it to a printer.
  • Lotto Program in C#Jul 16, 2007. It is a small Lotto-Program which can help you fill your lotto ticket. It is written in C#.NET 2.0 by using Visual Studio 2005.
  • Free Book: C# Programming for BeginnersAug 21, 2007. In this book, you will learn how to write and compile C# programs, understand C# syntaxes, data types, control flow, classes and their members, interfaces, arrays, and exception handling. After completing this book, you should have a clear understanding of the purpose of C# language, it’s usages, and how to write C# programs.
  • Solution for "A Graphics Object cannot be Created from an Image that has an Indexed Pixel Format"Sep 10, 2007. In this article, you can learn how to avoid the issues/errors when you access/edit indexed pixel format images using few steps.
  • How to display the records in DataGrid by using the PagingSep 11, 2007. Through this article you will learn the concept of Paging in detail. You can display the large records in DataGrid by using Paging.
  • XML with C-sharpSep 13, 2007. Through this article you will learn how to handle XML in c#.
  • Free Book: Programming XML with C#Sep 15, 2007. Programming XML with C# is a 65 pages book written for C# programmers who wish to learn how to work with XML documents using C# language. In this book, you will learn the basic elements of XML and classes and objects available in .NET Framework to work with XML.
  • INDEXER in C#Sep 17, 2007. Through this article you will learn the concept of INDEXER in C#.
  • Easily Find Tags and Values in a Large Xml Document Using XmlTextReader in C#Sep 20, 2007. In this article you will learn how to find tags and values in a large xml document using XmlTextReader in C#.
  • Using the BackgroundWorker Component with Composite User ControlsSep 28, 2007. In this article you will learn how to use the BackgroundWorker Component with user controls in C#.
  • Ajax AlwaysVisibleControlExtenderOct 05, 2007. In this article you will learn how to use the AJAX AlwaysVisibleControlExtender control in ASP.NET 2.0.
  • Using DLL files in Visual Studio 2005 using C#Nov 14, 2007. This article explains the procedure of creating DLL files using visual studio 2005. It is very quick and easy to learn.
  • Where Did All the Designers Go! Jan 24, 2008. Software is one of the fastest paced industries in the business world. As quickly as software languages come and go, skill sets require constant learning. In trying to keep up with implementation aspects of software, did we somehow forget about the priority of creating a good design? This article describes how we came about with a void of software design skills in the programming world.
  • Chapter I: Resources and LocalizationFeb 01, 2008. In this chapter, you will learn all the necessary details for working with resources in ASP.NET applications and for creating international ASP.NET applications based on embedded resources and the integrated localization support.
  • Chapter 1: Hello LINQFeb 06, 2008. This is an exert from Joseph C. Rattz, Jr.'s book Pro LINQ. Here you learn how to use Linq in your application and also depicts the benefits of using Linq.
  • Generics in C# - Part IMar 28, 2008. In Part I of this series you will see the importance of generics, you will learn how to use generic types which in the System.Collections.Generic namespace and you will also learn how to create generic methods.
  • Data Validation Controls in ASP.NET 2.0Apr 11, 2008. In this article, you will learn about the support that ASP.NET provides to you for performing data validation.
  • Chapter I: Introducing WPFApr 22, 2008. This chapter provides you a brief knowledge about the Windows Presentation Foundation (WPF)
  • The first pillar of object-oriented programming - EncapsulationMay 09, 2008. In this article we will start with Encapsulation, the first pillar of OOPS, you will learn the benefits of encapsulation and why to use it, you will learn how to enforce encapsulation by using (accessor and mutator) and by using properties.
  • Using Windows Forms Controls in WPFJun 20, 2008. In this tutorial, you will learn how to use existing Windows Forms controls in a WPF application. I have used Visual Studio 2008 to create this tutorial.
  • Power of Yield, Generics and Array in C#Jul 14, 2008. This article tells you an additiional way to get reverse processing of array with help of generics and yield.
  • AJAX Accordion ControlSep 12, 2008. The Accordion is a web control that allows us to provide multiple panes and display them one at a time. It is like having several CollapsiblePanels where only one can be expanded at a time.
  • Ajax rounded corners controlSep 15, 2008. There is a very good control in AJAX to make rounded type shape. We can create rounded shape in many design by using Corners property of this control.
  • Performance Tuning in Database SystemsNov 08, 2008. In this article, we’re going to learn the principles and techniques you can use to help troubleshoot and evaluate query performance by illustrating examples in Microsoft SQL Server and Oracle database.
  • Image Slideshow in WPFNov 17, 2008. In this article, I will create a simple image slideshow using WPF and C#.
  • Ajax DropShadowExtenderDec 09, 2008. DropShadow is an extender which applies a "Drop Shadow" to a Panel.
  • The 3 Musketeers: Model, View and Controller using HTTPHandler – Part 1Dec 22, 2008. In this section, we will learn about the basics of MVC and then see how we can implement the same in ASP.NET using HttpHandlers.
  • Sending email in ASP.NET 2.0Jan 05, 2009. This article will help you to learn sending email in ASP.NET 2.0. It is also describes how ASP.NET 2.0 is different from its previous version for sending email.
  • Responding to user interactions in a Blend+Silverlight applicationJan 06, 2009. In this article, you will learn how to capture user interactions in a Silverlight application with Expression Blend.

About Learn-csharp

learn csharp

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Download Free eBooks