C# Corner

Resources  
  • Compilation and Runtime Execution of a C-Sharp ProgramApr 10, 2001. C-Sharp (C#) is a strongly typed object-oriented programming language designed to give optimum composition of simplicity, expressiveness and performance.
  • TCP Client and ServerSep 20, 2001. You need to compile the server and the client programs separately. Before compiling, change the IP address in both programs to match that of your machine (NOTE: You can get IP address of your machine if you run 'ipconfig' from the command prompt in Windows NT/2000 m/c's)
  • Web Enabled C# ApplicationJan 02, 2002. C# is a sharp-edged weapon for Microsoft Visual Studio Programmers. My article beneath presents a brief eye-catching vivid view of programming internet web-browser using C#(C Sharp), and solves today's need with tomorrow's software!
  • Sharp HSQL- An SQL Engine Written in C#Aug 01, 2002. .NET! C#! If you haven't been inundated with the marketing of Microsoft's new initiatives, you've been living in your cube without a web connection for quite a while.
  • Working With DirectDraw and Bitmap ImagesSep 05, 2002. This month in the C-sharp DirectX column, we will be adding bitmap image support to our game engine.
  • 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.
  • 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#.
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IVJan 30, 2006. Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll look further into Garbage Collection (GC) and some ways to keep our applications running efficiently by using static class members.
  • Understanding C# Events: What They Are and Where They Came FromJan 30, 2006. To help you get a working knowledge of C# events and event handling, this article explains where events come from, what they really are at a functional level and how they are expressed in C#. This article specifically looks at the Gang Of Four (GOF) Observer pattern.
  • The .NET 2.0 Framework Provider PatternAug 11, 2006. The Provider Model Design Pattern was first introduced with the .NET 1.1 framework, specifically in the ASP.NET starter kits and was formalized in ASP.NET Whidbey as a membership management provider API (Application Program Interface). It's primary purpose is to separate the definition for an API from the implementation. This keeps the API flexible by enabling the core functionality to be flexible and easily changed.
  • XML with C-sharpSep 13, 2007. Through this article you will learn how to handle XML in c#.
  • Writing Better Code -- Keepin' it CohesiveFeb 15, 2008. One of the aspects of code quality we can look at is cohesion. If code is highly cohesive it is also much more testable, reusable, readable and maintainable (all the good things in life). Likewise, if code has a low level of cohesion it is often very hard to understand at a glance and difficult to test and maintain. In this article we'll take a look at a concrete example of code that does not follow the Single Responsibility Principle and as a result has low cohesion and walk through the refactoring it takes to modify the code to be more highly cohesive.
  • Writing Better Code; Keeping it MaintainableMar 01, 2008. This article provides guidance for writing better, more maintainable code.
  • Getting Started With F#Mar 22, 2008. This is the first in a series of articles discussing the F# programming language. I cover how to get your dev environment set up to develop with this awesome NET Framework language
  • F# Tuples and Binding (and more Binding)Mar 26, 2008. Binding in F# is similar to using variables in C# but there are some big differences. This article discusses one of the most used keywords in F# for binding ("let") and how it is different than setting a C# variable. I also cover the tuple F# data structure.
  • 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.
  • How to Generate an XML Document Rogrammatically Using DOM: Part IJun 19, 2008. In fact, I wrote this article as an answer of one among questions posted as a part of a C sharp corner forum. I will enumerate methods of how to do that through three articles, the first one illustrates how to do that using DOM technology
  • Design pattern -Inversion of control and Dependency injectionNov 04, 2008. In this section we will discuss about how IOC and DI can help us build loosely coupled software architecture.
  • Creating art using Silverlight and BlendNov 05, 2008. This article shows how you can draw attractive shapes and artistic elements using Silverlight and Blend.
  • Web Browser in C#Mar 16, 2009. The attached project is a Web Browser application created in C# 2.0.
  • F# Data Abstraction Layer For C#Apr 06, 2009. In this article I'll take a look at building a data abstraction layer in F# and consuming it with C#.
  • What are Properties in C-sharp and how to use them?May 19, 2009. In this article I will explain the property in C# along with practical demonstration which will help you to understand it in a simple way.
  • Static in C#May 20, 2009. In this article I m highlighting something about static. It's a simple article to make beginners understand in easy and fun way.
  • Struct in C#Jun 08, 2009. In this article, you will learn how to define structs in C#, where and how to use them and what is the difference between structs and classes.
  • Enums in C#Jun 11, 2009. This article demonstrates how to use enumerations in C#.
  • Indexers in C#Jun 29, 2009. In this article, I discuss indexers in C# and how to use them.
  • Insertion at the begining of a Linklist in C#Jul 11, 2009. This code snippet shows how to insert data to a Linklist at the beginning.
  • DataTable in C#Nov 02, 2009. In this article, you will learn how to create an ADO.NET DataTable at run-time and use its properties and methods using C#.
  • Static class in C#Nov 29, 2009. This article will discuss about static class in C#. Different feature of static class and different way of creating static class also will be discussed.
  • ArrayList in C#Jan 21, 2010. This article discusses how to use ArrayList class in C#.
  • Translate Driving Directions from Google Maps in XML FormatJan 29, 2010. In this example, It has been demonstrated on how you can integrate the Keyhole Markup Language KML document in Asp.net using C Sharp.
  • Abstract Class in C#Mar 09, 2010. An Abstract class is an incomplete class or special class we can't instantiate.
  • Creating a Button at Run-time in C#May 13, 2010. Creating a Button control at run-time is merely a work of creating an instance of Button class, set its properties and add Button class to the Form controls.
  • StringCollection in C#May 23, 2010. StringCollection class is a new addition to the .NET Framework class library that represents a collection of strings. In this article, we will discuss how to take advantages of its methods and properties to manage a collection of strings.
  • TextBox in C#May 25, 2010. A TextBox control accepts user input on a Form. In this article, I will discuss how to create a TextBox control in Windows Forms at design-time as well as run-time. After that, I will continue discussing various properties and methods available for the TextBox control.
  • Button in C#Jun 01, 2010. Button class in Windows Forms represents a Button control. A Button control is a child control placed on a Form and used to process click event and can be clicked by a mouse click or by pressing ENTER or ESC keys.
  • CheckBox in C#Jun 03, 2010. A CheckBox control allows users to select a single or multiple options from a list of options. In this article, I will discuss how to create a CheckBox control in Windows Forms at design-time as well as run-time. After that, I will continue discussing various properties and methods available for the CheckBox control.
  • MenuStrip in C#Jun 08, 2010. The MenuStrip class is the foundation of menus functionality in Windows Forms. If you have worked with menus in .NET 1.0 and 2.0, you must be familiar with the MainMenu control. In .NET 3.5 and 4.0, the MainMenu control is replaced with the MenuStrip control.
  • Create Image Thumbnails in C#Jun 10, 2010. The code snippet and project attached in this article demonstrates how to create a control that displays thumbnails of images using GDI+ and C#.
  • CheckBox in C#Jun 11, 2010. A CheckBox control allows users to select a single or multiple options from a list of options. In this article, I will discuss how to create a CheckBox control in Windows Forms at design-time as well as run-time.
  • DomainUpDown in C#Jun 21, 2010. A DomainUpDown control allows users to provide a spin (up/down) interface to move through pre-defined strings using up and down arrows. In this tutorial, we will see how to create a DomainUpDown control and use it in a Windows Forms application.
  • NumericUpDown in C#Jun 22, 2010. A NumericUpDown control allows users to provide a spin (up/down) interface to move through pre-defined numbers using up and down arrows. In this tutorial, we will see how to create a NumericUpDown control at design-time as well as at run-time.
  • GroupBox in C#Jul 01, 2010. A GroupBox control is a container control that is used to place Windows Forms child controls in a group. The purpose of a GroupBox is to define user interfaces where we can categories related controls in a group.
  • Label in C#Jul 07, 2010. A Label control is used as a display medium for text on Forms. Label control does not participate in user input or capture mouse or keyboard events.
  • Dictionary in C#Jul 10, 2010. A Dictionary class represents a dictionary in C# that is used to represent a collection of keys and values pair of data. This article demonstrates how to use a dictionary in C#.
  • Understanding Message Box in Windows Forms using C#Jul 12, 2010. MessageBox control displays a message with specified text. A message box may have some additional options including a caption, icon, and help buttons. In this article, I will discuss how to use the MessageBox class to display messages in Windows Forms and C#.
  • MaskedTextBox in C#Jul 16, 2010. In this article, I will discuss how to create a MaskedTextBox control in Windows Forms at design-time as well as run-time.
  • Radio Button in C#Jul 20, 2010. A RadioButton control provides a round interface to select one option from a number of options. Radio buttons are usually placed in a group on a container control such as a Panel or a GroupBox and one of them is selected.
  • How to read a text file in C#Jul 30, 2010. This code sample shows how to read text files in C#.
  • Why Bother with MS Office?Aug 06, 2010. The following article is written as a commentary with the hopes of creating a discussion about the practicality of learning MS Office.
  • Split String in C#Aug 22, 2010. How to split string in C#.
  • Substring in C#Aug 22, 2010. How to get a substring from a string in C#.
  • HelpProvider in C#Aug 29, 2010. HelpProvider control provides popup or online help for a control. In this article, we will discuss how to use a HelpProvider control to implement help for controls in a Windows Forms application.
  • Finding multiple items in C# ListOct 04, 2010. In this article we will see how to find multiple items in C# list.
  • Read Inbuilt Document properties of Word Document in C# Feb 07, 2011. In this article we will discuss how to read the document properties of any Word document in C#.
  • Doing Arrays - C#Feb 24, 2011. The article explains type of arrays in C# with easy to understand examples.
  • Palindrome in C# GUIMar 13, 2011. Software to check weather the word ,sentence,number are same when read from backward and forward eg Racecar,malayalam etc uses array ,first index and last index this is the one and only GUI version of palindrome available on-line checking word and sentences
  • C# TabControl Apr 03, 2011. The TabControl manages tab pages where each page may host different child controls. In this article, I will demonstrate how to create and use a TabControl in Windows Forms using C#.
  • The Is and As Operators in C#Jul 05, 2011. In this quick article you will take a look at the "is" and "as" operators in C#.
  • Exception Error Handling Log Maintenance in a Text File: Part 1Jul 08, 2011. In this article I will describe how to log program exceptions and save into a text file.
  • Exception Error Handling Log Maintenance in a Text File: Part 2Jul 11, 2011. In this article I will describe how to use the "ErrorHandling" dll when an exception happens and how to register the Exception in a text file.
  • JQuery Ajax Calling FunctionsJul 11, 2011. Here I will show you five functions availale in the jQuery libaray.
  • How We Can Use Custom Roles And Membership in ASP.NETJul 13, 2011. In this article I would like to show a sample demonstration regarding how we can use a custom roles and membership.
  • Lists in F#Jul 14, 2011. This article is a demonstration regarding List in F# and also about List Types, List module functions and examples, Have a quick review to learn.
  • Cross Thread Operations in C#Jul 14, 2011. When you will work with threads and want to access a control on another thread then its post will solve your problem.
  • Types of Operators in F#Jul 15, 2011. This article demonstrates operators; Infix operators, Prefix operators and types of operators. Have a quick review for learning operators.
  • Delegate in .NET (C#): Digging / Acquaint - Make it SimpleJul 17, 2011. A delegate is an object or instance which can hold a reference of any function or which can bind a function.
  • Search Engine - Windows Tool Using C#Jul 17, 2011. Here I am creating a tool which would help us add topics and their corresponding sites in a database and also search them using the tool.
  • MEFContrib with Unity Interception Jul 23, 2011. In this article I try to use MEF with Unity Framework. I am trying to build a simple app which would be extensible and at the same time would use Aspect Oriented Concept.
  • Multiple Active Result Sets (MARS)Aug 12, 2011. Multiple Active Result Sets (MARS) is a feature supported by ADO.NET that allows the execution of multiple batches on a single connection. In previous versions, only one batch could be executed at a time against a single connection.
  • Save and retrieve image from SQL 2005 in ASP.NetAug 15, 2011. In this article you will learn how to save and retrieve image from SQL 2005 in ASP.Net
  • LINQ-Language Integrated QueryAug 18, 2011. Here I will explain LINQ-Language Integrated Query.
  • Quick Steps to URL Rewriting in Asp.net 4.0 Aug 25, 2011. In this article you will learn URL Rewriting in Asp.net 4.0.
  • How to Implement ToolBar in WPF using F#Aug 29, 2011. This article is a demonstration regarding how you can craft a Toolbar with icons in WPF using F#. Take a quick review to learn.
  • How to get the List of Sorted SystemParameters in WPF using F#Aug 31, 2011. This article is a demonstration regarding how you can get the sorted SystemParameters in WPF using F#. Take a quick review to learn.
  • Ballgame in F# using Silverlight and WPFSep 01, 2011. This article is a demonstration regarding how to develop a Ballgame in F# using WPF and Silverlight.
  • Windows Presentation Foundation: What, Why and WhenSep 03, 2011. WPF is a framework to build application for Windows. It is designed for .NET, influenced by modern display technologies like HTML, Flash, and hardware acceleration.
  • Finding Square of Range of Numbers in F#Sep 26, 2011. This post is targeting people starting with F Sharp. Level: 100
  • F Sharp for Beginners: Modules in F#Oct 01, 2011. Let's learn about the Modules in F#.
  • Gapless Audio CD Recording with VB or C SharpOct 03, 2011. I wrote this because I needed it. Being a card carrying member of Old Timers Associated, I have a lot of beautiful music on vinyl. Being a card carrying member of Poor Folks Associated, I can’t afford to re-buy all of them on CD.
  • Inserting in Excel FILE from C# Collection Using Open XML SDK 2.0Oct 10, 2011. In this post I will show inserting rows in to an excel file from a c Sharp list using the Open XML SDK. The Open XML SDK is very useful when you don’t want to or cannot use the Microsoft Office InterOP DLL.
  • Process and Thread basicsNov 23, 2011. A process is a program that is running on your computer. This can be anything from a small background task, such as a spell-checker or system events handler to a full-blown application like Internet Explorer or Microsoft Word. Every process have at least one thread.
  • List in C#Nov 29, 2011. This article demonstrates how to use a List in C#.
  • How to Handle a Custom Exception in C#Jan 19, 2012. By using custom exceptions, we can create and handle our own user defined exceptions.
  • MongoDB With CSharpJan 23, 2012. In this article we will do a quick start of MongoDB with CSharp.
  • What is Action in C#?Feb 21, 2012. Action is type of delegate. It returns no value. It may take 0 to 16 parameters.
  • Conversion From List to Array and Vice-VersaMay 20, 2012. Using a list element as an array by converting the list into an array and array into a list; also how to find the maximum and minimum element in the list.
  • Create a Text File in C#Jun 08, 2012. This article demonstrates different ways to create a text file in C#.
  • How to read all items of a Dictionary with C#Jun 29, 2012. How to read all items of a Dictionary with C#.
  • How to create a dictionary in C#Jun 29, 2012. How do I create a dictionary using C#
  • How to create a List in C#Jul 05, 2012. How to create a List in C#.
  • How to add items to a SortedDictionary with C#Jul 10, 2012. In this article we are discussing about how to add items in Sorted Dictionary in C#.
  • How to use SortedDictionary Properties with C#Jul 10, 2012. In this article we are discussing about what are SortedDictionary Properties in C#.
  • How to read Sorted Dictionary items with C#Jul 10, 2012. In this article we are discussing about how to read items of a Sorted Dictionary in C#.
  • How to sort items of a SortedDictionary with C#Jul 11, 2012. In this article we are discussing about how to sort items of a Sorted Dictionary in C#.
  • How to find a value of a SortedDictionary with C#Jul 11, 2012. In this article we are discussing about how to find a value of a Sorted Dictionary in C#.
  • How to find a key in a SortedDictionary with C#Jul 11, 2012. In this article we are discussing about how to find a key in a Sorted Dictionary in C#.
  • How to remove an item of a SortedDictionary using C#Jul 11, 2012. In this article we article discussing about how to remove items of a Sorted Dictionary in C#.
  • File.CreateText Method in C#Jul 27, 2012. In this article we will discuss about how to use the File.CreateText Method in C#.
  • Write to a File With OpenWrite Using C#Jul 31, 2012. In this article we are discussing how to use the File.OpenWrite method in C#.

About C-sharp

C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg. This tutorial will teach you basic C# programming and will also take you through various advanced concepts related to C# programming language. C# programming is very much based on C and C++ programming languages.

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!
Visual Studio Live - Redmond 2016