C# Corner

Resources  
  • Web Services Between .NET, Java, and MS SOAP toolkitAug 24, 2001. This article will try to explain the how you can build web services and/or clients with any of the three languages: .NET, MS SOAP Toolkit and Java. But the real point of the article is to show you how you can build clients for web services from any of above-mentioned languages.
  • ASP.NET and VB.NET Error HandlingAug 24, 2001. ASP.NET and VB.NET both are providing excellent error handling options when compared with ASP and VB6. In VB.NET we can make use of the structured way of error handling with the Try & Catch statement.
  • Menu Page on Mobile SiteAug 31, 2001. My basic idea to stat this site is to show you a real-world example and how mobile programming can be integrated to a web site. I would try to build this site as useful as I can. If you've got any ideas or suggestions, please don't hesitate to send it to me.
  • Understanding the System.Buffer ClassDec 13, 2001. Before we try out something with Buffer class lets understand Buffer class and its Members.
  • Observer and .NET event delegatesDec 17, 2001. The purpose of this article is to try to introduce observer pattern and compare it to .NET event delegate handling of notifications.
  • Exception Handling in C#Jan 03, 2002. In C# Exception is a class in the system namespace. An object of an exception is that describe the exceptional conditions occur in a code That means, we are catching an exception, creating an object of it, and then throwing it. C# supports exceptions in a very much the same way as Java and C++.
  • Space Breakout - 2D Game Developed using DirectX and C#Apr 11, 2002. GDI+ is a feature rich graphics API that makes sophisticated graphical effects highly accessible to the C# developers. Unfortunately if youve tried to develop smooth detailed animation using GDI+ you have undoubtedly discovered that just how slow it can be. Consequently it is not particularly suited to games development, if you want to really take advantage of your 1 gig + processor and that fancy new graphics card youre going to have to get a little more low level and dirty, enter Microsofts DirectX API.
  • Mastermind Computer Player using Genetic Algorithms in C#Jul 22, 2002. After writing the Genetic Algorithm Article for implementing a Genetic Algorithm in C#, I tried to think of a good example of how to illustrate a real-world use of Genetic Algorithms to illustrate artificial intelligence.
  • Using Multimedia Controls in .NET through COM InteroperabilityAug 01, 2002. In this article I'll try to explain the issue of the COM Interoperability and how to use Multimedia Device controls.
  • Windows ExplorerAug 26, 2002. This application is a clone of Windows Explorer. Unlike other Windows Explorer code available in .NET, I have tried to make it closed to Microsoft Windows Explorer.
  • Eater Game II - The Stone MazeOct 02, 2002. This program combines the designs of the Eater Game and the Maze Generation Program to create a more challenging game, Eater Game II. In this game, you move a pacman-like character through a maze and eat as many stones as you can before time runs out. You have a minute and a half to try to eat stones before the pac-man simply freezes-up and accepts his quota of stones.
  • BlackJackOct 10, 2002. So as a learning experience, I decided to try writing a Blackjack game.
  • Creating an Instance of Internet Explorer in C#Dec 19, 2002. I was trying to write a program that opened an instance of Internet Explorer in a separate window, rather than use the Browser control that comes with the .NET platform.
  • Possible Usage of Visitor and Type CastsFeb 25, 2003. In this article I will try to introduce Visitor pattern and one possible variation on it. It treats problems related to projects projects where high level of adaptability is needed.
  • Degenerated Observer and Asynchronous Web ServicesMar 20, 2003. In this article I will revisit Observer pattern and try to show how it can be modified and used to make web services to dispatch and receive notifications.
  • Creating Word Find Pzzules in C# and GDI+Sep 30, 2003. Perusing the newsstands in New York you'll find newspapers, TV-Guides, magazines, and even books. In the magazine section you'll often find crosswords and books containing the puzzles you'll see in figure 1. The books contain pages and pages of puzzles with hidden words contained in the matrix of letters in which you can spend time going blind trying to find.
  • Meet Microsoft .NETSep 30, 2003. Before writing applications in C#, understanding the .NET is very important. Usually, beginners who are moving to C# don’t care about understanding .NET? In this article, I will try to explain .NET in general and its components.
  • Creating Word Find Pzzules in C# and GDI+Sep 30, 2003. In the past I have been guilty of trying a few of word find puzzles myself, so I figured why not give it a go it .NET. The Word Find creator reads a MSDE database of Words and Categories.
  • .NET versus ONENov 24, 2003. Microsoft .NET and Sun ONE are that glue for each of the companies—the super glue that tries to hold together a lot of information around vision, architecture and products.
  • Generating Combo Box in DataGrid ColumnsJan 09, 2004. DataGrid programming in .NET is real fun. And that too if you’re trying to get it programmed in a Windows Forms world its double the work. You got to write a whole lot of code for a simple extensibility of the existing features of datagrid. One good example is having a combobox in one of the columns of the datagrid.
  • Testing .NET applicationsFeb 16, 2004. This white paper shares vision and challenges in testing .NET applications. Never before, has any technology or framework tried bringing many disparate systems and languages under one roof for the benefit of enterprise applications.
  • Rotating the text display on a Pocket PC/Win CE deviceFeb 01, 2005. In this article let us try to understand why rotating a text/bitmap is difficult to achieve on a Pocket PC 2003/Win CE 4.2 device.
  • How to Interpret Handwriting with C#Sep 02, 2005. In this article, I'll try to explain how to recognize handwriting with C# and GDI+.
  • C# with AutoCADJan 28, 2006. In this article I will try to show how can we use C# to build AutoCAD drawings.
  • Usage of doPostBack in a Real EnvironmentJan 29, 2006. Many atricles describes about "__doPostBack". But here I am trying to say some real practical ways to use it and also mentioned some precautions waant to take before use it. Believe me this article derived from my practical experience and will continue only such items from my side, as only those thing will help a developer.
  • AJAX Pager controlFeb 01, 2006. After AJAX Repeater control next logical thing was to try and create paging control, a control which renders paging links when you set its properties like page count and page number, I have been using similar control in asp.net page so I decided to implement same thing with JavaScript.
  • Writing Dataset to Excel in ASP.NETMar 01, 2006. This article is helpful for those who would like to write dataset contents to a excel file and try to display it in the browser.
  • Customized Exception Handling Using Resource FileMar 03, 2006. A good exception handling should care about user as well as developer. i.e. developer can easily locate the exception entry point, may be a function or any where in a vast project, and fix it as soon as possible. So in this writing I tried some exception handlings which will consider both user and developer.
  • Customized Binding Using CollectionBaseMar 04, 2006. In this article I am trying to explain the use of CollectionBase class. In a simple example I used CollectionBase to bind a DataGrid control with data from Employees table of NorthWind database. So please be sure that your system exists with NorthWind database before using the sample code along with this article.
  • 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.
  • AndAlso & OrElse Operators in C#Mar 13, 2006. Hi all, in a very short note I am trying to explain some interesting logical operators in C# and their VB.NET counter part. You must ware of the differences between these operators for a better usage of them.
  • Custom Drawing Cursors in C#Mar 14, 2006. Some time ago I have decided to try to make something like a "Photoshop" in C#. The first problem has appeared was custom cursors. If you are familiar with "Photoshop" you know that when you change brush size the cursor size also changes. This is solution to make this possible in C# .
  • System Views and Functions in SQL Server 2005 by Steve on Jul 06, 2006 Jul 06, 2006. I tried to explore some basic TSQL functions and VIEWS in SQL Server 2005. I believe this would be useful when we write DDL-DML Statements.
  • A quick start with C# and Websphere MQJul 11, 2006. This article is trying to help the developers who want to start integrating .NET applications with Websphere Message Queue.
  • Illustrates the use of the lock in multithreading applicationAug 17, 2006. Any application must have one or more processes. A Process is structural unit with a memory block and using some set of resources. For each executable, the Windows operating system creates some isolated memory block. This article tries to explain the use of lock basics of Multithreading in C# .Net.
  • Enhanced way to send E-mail with a TemplateOct 06, 2006. E-mail is used to send notification to customer nowadays, and since any smart developer try to send any notification in a professional format, one of these issues to send your notification in a template, this template might be your employer template or any other template you want to send it from your application.
  • Prevent CD AutoplaysDec 19, 2006. This article describes the approach used programmatically to prevent a CD from going into auto play mode; this may be useful to you if you are, for example, writing an application that logs directly to CD and you are trying to burn data periodically to a CD but you do not want the CD to go into auto play mode after burning a some data to it.
  • Writing Managed Stored Procedures using C#Feb 19, 2007. This article is trying to explain the simple and required steps that are require starting the creation of Manage Stored Procedure using C# and using them.
  • Writing Managed Triggers using C#Feb 21, 2007. This article is trying to explain the simple and required steps that are require starting the creation of Manage Triggers using C#.
  • Writing Managed User Defined Function using C#Feb 22, 2007. This article is trying to explain the simple and required steps that are require starting the creation of Manage User Defined Functions using C#.
  • Generating ASCII Art from an Image using C#Mar 05, 2007. Have you ever tried converting a standard JPEG/Bitmap image into a fascinating ASCII art ? In this article I'll show you exactly how to do it.
  • Multi-threaded Asynchronous Programming in C#... Getting started.May 12, 2007. Trying to build better solutions and growing as a developer has always been fun for me and I’m always looking for ways to build more scalability and robustness in the software I am writing. I had a revelation that I’ve been doing a lot of C# tweaking but not taking advantage of the core performance enhancements cooked right into C# and it all comes down to one thing: Asynchronous multi-threaded programming.
  • Error Opening SSIS PackageMay 30, 2007. I got a weird error when trying to open an SSIS package in VS2005.
  • Generics in C# 2.0Aug 17, 2007. In this article, I just try to discuss on type safe data structures with the help of Generics in C# 2.0.
  • Iterator in C# 2.0Aug 21, 2007. Iterator is one of the new feature in C# 2.0. I am trying to explain it with Employees and Department classses.
  • 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.
  • Configuration Sections- Create customized section using IConfigurationSectionHandler Interface: Part IIIApr 16, 2008. In this part III article we will try to achieve, step by step, the same goal as in the Part II article, but using another tool, namely, the IConfigurationSectionHandler interface.
  • Why and when using where keyword within a generic class contextMay 05, 2008. In this article, I will try to make understand the importance of the where keyword used as a part of a generic class context.
  • Exception and error handling in enterprise applicationsJul 31, 2008. In this article, I try to cover the key principles and the main techniques of exception and error handling with examples in SQL Server, Oracle and Microsoft .NET.
  • How to Define and Configure a Grid Control Within a WPF Aplication Using XAML: Part IAug 13, 2008. In this article, I will try to make a representation of the Grid object witch is directly derived from the Panel abstract class and we can say that is a flexible area that contains rows and columns, it plays a role of container in a given WPF window.
  • Microsoft and the embedded systemsDec 21, 2008. In this article, I try to introduce the embedded system offered feature to the C# developer
  • DI using Unity Application BlocksJan 20, 2009. In this article we will take up a simple example and try to implement DI using unity application blocks thus resulting in loosely coupled architecture.
  • Error Result 1 Returned from 'C:\WINDOWS\system32\cmd.exe'Feb 04, 2009. I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2008.
  • Interfaces + Factory pattern = Decoupled architectureFeb 13, 2009. In this tutorial we will try to understand how we can use interfaces and factory pattern to create a truly decoupled architecture framework. In this sample we will take up a simple three tier architecture and apply interfaces and factory pattern to see how we can transform the three tier in to a truly decoupled architecture.
  • LINQ FAQ for Newbie's Mar 05, 2009. In this article we will run through basics of LINQ and then see 5 basic LINQ queries which you will always need in your project for queries. While looking at the basics we will also try to learn what problem LINQ solves from the perspective of middle tier business objects.
  • The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)May 12, 2009. You are unable to access the reporting site for our TFS project. You are able to view individual reports from VS, but you cannot get to the reporting site to edit them. Whenever you try to go to it (By right clicking on Reports->Show Report Site in Team Explorer), you get the SQL Server Reporting Services Error.
  • Project Life Cycle beyond SDLCMay 17, 2009. Many people think project life cycle circulates around SDLC. In this article, we will discuss about other phases which occur before SDLC starts. I know that companies have tailor made phases we have just tried to put phases followed by majority IT companies.
  • Microsoft Technology OverviewMay 21, 2009. In today’s fast changing technology, keeping up with technological changes is a challenge. Every time we try to keep up with technology changes, technology changes again. It is never ending chase to catch up with technology and that is what makes software development even more interesting. Focus of this article is to give developers, project managers a quick view of many of new Microsoft technologies out there and help them realize the value of these new technologies. To be frank, technologies covered here are not new and some of them were introduced to IT world, 3 to 4 year ago. But in relative terms, these are still new technologies in Microsoft world as real-world projects and products might take some time to adapt to these changes in technology.
  • What are sealed classes and sealed methodsMay 25, 2009. In this article, I will try to explain sealed classes and sealed methods in a very simple way in C# language.
  • 7 Simple Steps to Connect SQL Server Using WCF from SilverLightJun 22, 2009. In this article we will look how we can do database operations using SilverLight. We will first try to understand why we cannot call ADO.NET directly from a silverlight application and then we will browse through 7 steps which we need to follow to do database operation from silverlight.
  • Managed code and unmanaged code in .NETJun 25, 2009. In this article I will try to explain you managed code and unmanaged code in .NET with help of diagram and its execution process.
  • Exception Handling in C#Jul 08, 2009. This article explains you about exceptional handling in C#. How to use try, catch, finally block to handle exception handling
  • GridView Multicolumn sortingJul 09, 2009. GridView's built-in sorting can be enabled by setting a data source and AllowSorting property to true. Click on column header to sort based on the SortExpression specified in the Gridview column. However, Gridview does not support multi column sorting which is required in day to day application. So here is how I tried to create one:
  • LINQ FAQ for Newbie's Jul 13, 2009. In this section we will run through basics of LINQ and then see 5 basic LINQ queries which you will always need in your project for queries. While looking at the basics we will also try to learn what problem LINQ solves from the perspective of middle tier business objects.
  • How to improve your LINQ query performance by 5 X times ?Jul 17, 2009. LINQ has been criticized by many early adopters for its performance issues. Well if you are just going to drag and drop using DBML code generator I am sure you will land up in to mess. Try doing this make a simple LINQ to SQL project using DBML and see your SQL profiler, I am sure you will never like to touch DBML code generator again. In this article we will first look in to how LINQ queries are executed, and then we will touch base on how compiled LINQ queries can help us improve our application performance at least 5 times. My numbers can be 10% up and down as I had come to that figure using my environmental situations.
  • How to check someone else's checked out code into CVSJul 26, 2009. If you copied the source code you're working on, from another developer on your team and you you're trying to check it in, into CVS, and you can't, because CVS won't let you, this article is just the right solution to your problem.
  • Azure FAQ: Part IAug 03, 2009. Different people have different obsessions and I have this stupid obsession of writing articles in FAQ formats :-) . The more I try to write articles in normal format I end up with a FAQ. My only thought process of writing articles in FAQ format is that we end up talking to the point rather than talking about trees and rivers , many may disagree.
  • Exception Handling in C#Aug 19, 2009. In this article we will see exception handling technique in C#.
  • 4 steps to increase bandwidth performance for ASPX pages on IIS 6.0Sep 07, 2009. In this article we will try to understand how to enable compression on IIS 6.0. Once we have enabled compression we will use fiddler to see how bandwidth performance increases due to the same.
  • Exception handling in C#Sep 14, 2009. This article explains about the Exception handling in C# with code example.
  • 5 simple steps to execute unit testing using NUNIT Nov 22, 2009. Unit testing is validation and verification methodology where the developers test the individual units of source code. In this tutorial we will try to understand how we can do unit testing using NUNIT framework. This tutorial we will try to understand the 5 important steps to do unit testing using NUNIT.
  • Exception Statements in C#Dec 24, 2009. In this article I will explain you about Exception Statements in C#.
  • Try-Finally in C# Dec 28, 2009. In this article I will explain you about Try-Finally in C#.
  • Try-Catch-Finally in C#Dec 31, 2009. In this article I will explain you about Try-Catch-Finally in C#.
  • Propagation of Exceptions in C# Jan 02, 2010. In this article I will explain you about Propagation of Exceptions in C#.
  • Simple 6 steps to run your first Azure Worker Role ProgramJan 07, 2010. In this article we will try to understand 6 basic steps to create worker role project and as we run through the article we will try to understand the various fundamental methods which are executed in worker role projects.
  • Reflection in .NETFeb 02, 2010. In this article I tried to cover all the topics from .NET Reflection with examples.
  • SQL Query Optimization FAQ Part 1 (With video explanation)Feb 02, 2010. In this article we will first try to understand what is a SQL plan, how is it created and then we will move towards understanding how to read the SQL plan. As we read the SQL plan we will try to understand different operators like table scan, index seek scan, clustered scan, RID lookup etc. We will also look in to the best practices associated with clustered and non-clustered indexes and how they function internally. We will practically see how indexed views increase performance and in what scenarios we should use the same.
  • 4 steps to consume web services using Ajax (Includes Video tutorial)Feb 20, 2010. In this article we will try to understand the 4 important steps to consume web service directly in Ajax.
  • Getting started with Silverlight ApplicationMar 03, 2010. In this article I have tried to give right starting point for Silverlight application development.
  • Introduction to JQueryMar 15, 2010. In series of articles, I will try to explain JQuery in depth.
  • Virtual Photo Album in C#Apr 05, 2010. This application called "Virtual Photo Album". I didn't use any third party components, so it should be easy for you to download the code and play with it. I will try not to use any third party components while I am learning C#.
  • ASP.NET application and page life cycle Apr 19, 2010. In this article we will try to understand what are the different events which takes place right from the time the user sends a request, until the time request is rendered on the browser.
  • Creating Array of PictureBox controls in C#Apr 23, 2010. In this article, I try to create Array of PictureBox controls, you can create array of Labels and Buttons as my example.
  • Dealing with transformations in WPF: Part I - Standard 2D TransformationsMay 10, 2010. In WPF there are more than one transformation, I will try to present them the 2D ones one by one including some useful related techniques.
  • 6 Steps to Implement DUAL Security on WCF Using User Name + SSLMay 20, 2010. In the article we will try to apply DUAL security using transport plus message on WCF services. So we will first try to understand the basic concepts of WCF security i.e. transport and message. Once we understand the concept we will move step by step to how to implement SSL and user name security on WCF services.
  • Using the AJAX Control Toolkit in SharePointMay 24, 2010. In this article I try to explain how we can use the Ajax Control Toolkit in Sharepoint.
  • 6 important uses of Delegates and EventsJun 02, 2010. In this article we will first try to understand what problem delegate solves, we will then create a simple delegate and try to solve the problem. Next we will try to understand the concept of multicast delegates and how events help to encapsulate delegates. Finally we understand the difference between events and delegates and also understand how to do invoke delegates asynchronously.
  • WCF Concurrency (Single, Multiple and Reentrant) and ThrottlingJun 27, 2010. In this article we will concentrate on WCF concurrency and throttling. We will first try to understand what are WCF concurrency and the 3 important types of WCF concurrency. We will then see a small sample of WCF concurrency with single and multiple. We will then go through 9 combinations of WCF concurrency and instancing. Finally we will try to understand how to configure throttling using WCF ‘web.config’ file.
  • Where did all the Designers Go!Jul 16, 2010. 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.
  • Difference between DataContext and ItemsSource in WPF/SilverlightJul 16, 2010. In this article I will try to illustrate the difference between DataContext and ItemsSource property in Silverlight/WPF.
  • Data Access Application Block Using MVC 2 PatternJul 21, 2010. In this article I am trying to illustrate how to use Microsoft enterprise library data using MVC 2 pattern.
  • Export Image to Microsoft Office Excel using C#Aug 19, 2010. Here I am trying to show how we can export an image to excel file.
  • An Introduction to JQuerySep 09, 2010. Jquery is one of the most popular JavaScript libraries in use today. You may ask why to use Jquery. I will try to answer that in this article.
  • Abstract Factory PatternSep 21, 2010. In this walkthrough I'll try to explain GOF (Gang of Four) Abstract Design pattern. This article is about managing multiple connection strings of different data providers (SQL, Oracle, OleDB etc.).
  • Sorting MultiColumn ListViewSep 24, 2010. I've read Nipun Tomar's "Sort a Multicolumn ListView in C#" article and I feel there is some room for making the code more efficient and clear. I will also try to explain the code more deeply.
  • Master pages in Silverlight 4Oct 07, 2010. In this article, I try to implement ASP.NET master pages concept using Silverlight 4 and Visual Studio 2010.
  • Builder Pattern - A Robot ExampleOct 08, 2010. In this article I am trying to demonstrate the usage of Builder Pattern using a Computer Assembling Robot. Builder Pattern is one among the 23 patterns by Gang Of Four.
  • Going on a Safari, Don't Pet the Books!Oct 14, 2010. In the old days, I liked to walk into a Borders Bookstore and wander up and down the technical aisle to see if anything caught my eye. Like many impulsive buyers, I invariably found a useful book and justified its purchase as a business expense. These days, the thought process is a little different. I'll walk into Borders, find an interesting technical book, go home and try to find it on Amazon for a fraction of the cost. Of course if you find yourself buying a lot of technical books over the course of a year, I have a better option: a subscription to Safari Books Online, a vast repository of technical books.
  • Command Pattern - Undo ExampleOct 18, 2010. Here I am trying to show the usage of Command Design Pattern, one among 23 design patterns.

About try

NA

SPONSORED BY

C# Corner Chandigarh DevCon16
Chandigarh DevCon16 is a one-day Developer Conference where programmers, technologists, authors, and members meet, demonstrate, plan, and hang out.
techbash 2016