C# Corner

Resources  
  • C# Installation and CompilationSep 29, 2000. This article explains what you need to install on your machine to run C# and where to find the downloads.
  • Windows Calculator in C#Mar 27, 2001. This is a simple Calculator application as you will find in a Windows accessories.
  • Find Files in C#May 01, 2001. I have developed a small application in c#, which helps in searching u'r hard disk for files of the desired extention.
  • Snooping on C#.NET Regular ExpressionsJun 26, 2001. I present here two micro test utils, which will let you play with regular expressions. Regular expression( System.Text.RegularExpressions.Regex ) is a powerful class very useful for parsing, splitting or replacing texts.
  • Basic Database operations using ADO.NETAug 21, 2001. I found very interesting database features incorporated into the .NET as ADO.NET.
  • Web Services between .NET, Java and MS SOAP Toolkit: Part IAug 24, 2001. WinGhost 2.0 application allows you to show and hide applications running on your machine. I find this program useful at my work as I do lot of programming at any given time I can have a bunch windows open. I use it normally to hide just my windows I don't access that often.
  • Modest Introduction to IL Assembly LanguageSep 03, 2001. Since I received copy of Visual Studio .NET Beta 2 and did not manage to find “ILAssemblyLanguageProgrammersReference.doc” which was included in beta 1 I decided to share my experience with other assembly enthusiasts.
  • Constructor, Destructor and ILASMSep 20, 2001. I find C# a very interesting language and it also comes handy to analyze ILASM code.
  • Debugging "Rubber Band Effect"Nov 06, 2001. Bug fixes for Rubber Band Effect in a form by Simon Bond demonstrated a small but useful rubber band effect application. If you play with the application for a while, however, you may find one major problem with it.
  • Working with Menus in C#Dec 20, 2001. In this article I elucidate how to adding menus and menu item to Windows forms, Replacing, Cloning, Merging of menus and about Context menus (Popupmenus).
  • Working with Strings in VB.NETFeb 05, 2002. This article is VB.NET version of Working with Strings in .NET using C#.
  • World Clock Using Windows FormsFeb 11, 2002. I developed a C# application for finding World Timings given the US Central Timing.
  • Marble Solitaire Solution Display in GDI+Feb 13, 2002. The application finds and displays solutions to a game of solitaire. The application was written using Visual Studio.NET Version 7.0.9254. The test suite was written using NUnit, which is a .NET port of JUnit.
  • A Shaped Windows Forms Application with Variable OpacityMar 11, 2002. This application demonstrates two simple techniques that beginners might find useful in developing creative new looks for Windows applications.
  • .NET Beta 2 and Navigation in XML DocumentsMar 13, 2002. .NET Beta 2 was released yesterday at tech-ed, 2001, Atlanta. Many things have been changed in Beta 2 since Beta 1. In this article, I'll cover changes in XmlNavigator class replaced with XPathNavigator.
  • Tutorial: Capturing and Running IE Instances in a Windows controlMar 15, 2002. In this article we are going to study how to find the running instances of Internet Explorer on your machine.
  • BattleShips GamesApr 02, 2002. This application presents a grid of 100 squares to the user. The user has thirty five attempts to find to find the computers fleet. The computer randomly positions five ships of varying sizes around the board.
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • DataGrid Customization: Part-1Jun 25, 2002. In this article, I will discuss some DataGrid customization tips such as how to I get the name and index of the column headers and how do I find out if mouse click right click was on a column.
  • DataGrid Customization Part-II: Custom Sorting and DataGrid Column HidingAug 13, 2002. How to I get the name and index of the Column headers? How do I find out if mouse click right click was on a column
  • ShootDraw: Managed DirectX Application WizardMar 10, 2003. The Managed DirectX Application Wizard has created this "ShootDDraw" project for you as a starting point.This file contains a summary of what you will find in each of the files that make up your project.
  • Making Thumbnails of Transparent Images in .NET and C#Mar 28, 2003. When I started writing web applications using .NET, I found myself in need to dynamically create thumbnails of images that could be uploaded by the user or pulled from a database.
  • FTP Client Library for C#Apr 26, 2003. Finding a fully working, lightweight FTP Client that had no GUI, was free, and came with source was difficult.
  • Lengthy Operations on Single Thread in .NET ApplicationsJul 08, 2003. In this article I discuss how the lenghty operations can be handled in a .NET application. I also discuss how the stack trace can be examined to find any specific methods.
  • SMTP InternationalizationJul 16, 2003. You can find many articles dedicated to C# SMTP implementation on this or other sites.
  • Handling Null Values in DataGridJul 17, 2003. This article shows you how to handle no data found or null values in an ASP.NET DataGrid control.
  • User Controls in Internet ExplorerAug 13, 2003. WinGhost 2.0 application allows you to show and hide applications running on your machine. I find this program useful at my work as I do lot of programming at any given time I can have a bunch windows open. I use it normally to hide just my windows I don't access that often.
  • Interlocking ThreadsSep 10, 2003. Recently, I was building multi-threaded applications and noticed some intermittent data inconsistency. Soon, I found the culprit was locking mechanism. After doing some research, I gathered the following information and as usual decide to share with you guys.
  • 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.
  • 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.
  • Creating Word Find Puzzles for the Web in C# and GDI+ Part IIOct 06, 2003. This article shows you how to create Word Find Puzzle application for the Web using C#, GDI+, and ASP.NET.
  • Creating Word Find Puzzles for the Web in C# and GDI+ Part IIOct 06, 2003. In our last article we showed you how to create Word Find Puzzles inside of a Windows Form. This article will show you the migration process of bringing it over to an ASP.NET application.
  • Directory Picker Pro in C#Nov 24, 2003. In my latest project I needed a dialog for picking a directory. I searched through the web, but found nothing that looked nice. First of all I wanted a TreeView for display, and I wanted to view all system drives (with correct names and icons).
  • Advanced Notepad in C#Apr 13, 2004. This is an advanced version of Notepad that allows you to search, replace, change background and foreground text color. It also provides registry editing options.
  • Writing unsafe code - pointers in C#Oct 13, 2004. In this article I will give a short description of one of the feature of C# which are pointers and so-called unsafe code. This subject is particularly close for C++ programmers. Moreover, it is a feature that we do not find in Java.
  • ClickMania GameDec 21, 2004. This is an old game, first implemented in 1996 or so... It has a great addictive power. You will quickly find out the rules. I used the winmm.dll library for playing sounds, the picturebox.Paint event to draw bitmaps in a Picturebox and a recursive function to check the balls next to each other for the colors.
  • Stack in C#Feb 22, 2005. Stacks are one of the common data structures used in the software world, which follows the First In Last Out paradigm. Stacks are used in various mathematical functions like Towers of Hanoi, finding Fibonacci Sequence , Factorial of a number to name a few.
  • Active Directory and .NETJun 22, 2005. Microsoft Technet offers a script repository to work with AD User Accounts; however, I needed to work with .NET and I could not find samples for all the tasks I needed to program. I promised to myself that one day I would publish the code samples I found and created to help other developers who are working with Directory Services.
  • Custom Error Handling Using ASP.NETJul 07, 2005. Sometimes in your application, you may want to show some decent error messages other than red error messages and some message when page is not found or server is busy. We will see custom error message handling mechanism in this article using ASP.NET.
  • POC for DOM XML ParserJul 21, 2005. The classes found in System.Xml namespace provide functionality to parse and navigate through XML documents. The attached source code shows how to use this functionality in C#.
  • NotePad.NET II - Find and Replace Inside a Document Using Regular ExpressionsSep 04, 2005. This article is a continuation of the discussion about a notepad.net editor which improves upon the current functionality in notepad. In this article we talk about regular expression matching inside the find dialog.
  • Introduction to the MagicAjax.NET - The Magic Ajax Engine for .NETFeb 11, 2006. MagicAjax.NET is a free open-source framework, designed to make it easier and more intuitive for developers to integrate AJAX technology into their web pages, without replacing the ASP.NET controls and/or writing tons of JavaScript code.
  • 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.
  • Regular ExpressionsJul 05, 2006. The purpose of this article is to build upon the existing pool of regular expression articles by providing an overview of the new regular expression features found in .NET and to offer some guidelines as to when and how to use them.
  • Generating a Report from Multiple Data Sources in Crystal ReportsOct 23, 2006. If you have to create a report in Crystal Reports from multiple data sources or provide multiple views of the data, you may find sticky situations because CR does not allow you to have multiple Detail sections in a single report.
  • A guide to ObjectDataSource controlNov 17, 2006. One of the best new features of the forthcoming ASP.NET 2.0 will be the ObjectDataSource control. However, as I found out in my experimentation what seems like a simple control has some complex behaviours to master to get it working properly. If (like me) you have an existing data access layer you may have to make changes to be able to use ObjectDataSource.
  • Tip related to sub containers and SqlDataSourceDec 06, 2006. This article provides some tips when working With Master page or SqlDataSource insert function In VS 2005.
  • Find and Replace for Multiline TextDec 26, 2006. This article explains how would you find and replace a multiline text.
  • How to Bring up a Find Dialog in the WebBrowser Control using Managed C++Feb 07, 2007. This article will answers the question, "how do I bring up a find dialog in the Web Browser Control?". As easy as you would think this should be, it actually requires some COMplicated manipulation.
  • AdRotator Standard ControlMar 14, 2007. This article will help programmer, developer to overcome the problem as:"The AdRotator adRtrCtrl/adRotator1 could not find the AdvertisementFile or the file is invalid".
  • TreeView Control in C#Apr 16, 2007. This is an article addressing some of the basics of working with a TreeView control; the article will address dynamically adding TreeNodes to a TreeView control, searching the nodes to find and highlight a single node or a collection of nodes.
  • Implementing Search in Reports using ReportViewerApr 30, 2007. The ReportViewer control provides Find and FindNext methods to find a text in the report. This article explains how you can implement search functionality in reports programmatically.
  • Custom Generic EventArgsMay 14, 2007. Before .NET 2.0, I found myself frequently creating custom EventArgs classes just to return a value from an event and would end of with a lot of extra classes bloating my code base that all basically had the same purpose.
  • Creating MenuItem With WPFSep 03, 2007. In any desktop application it is very important to have menu bar to the application/system, so that user will find easy to access it. In this tutorial I will be talking about how we can create Menu bar in WPF application using XAML.
  • Finding and Listing Processes in C#Sep 10, 2007. This article shall describe a very simple approach for determining information regarding the processes currently running on a machine. The demonstration application includes a collection of methods that may be used to search for specific processes using various criteria or to list running processes.
  • 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#.
  • Read Asp.net Request Param and Session dynamically into propertiesOct 04, 2007. This Article shows how you can use Attributes and Reflection to dynamically populate property with value from param, session or context without writing any addition code. I have used this technique in past and I hope you will also find it useful.
  • Cartesian Products and Permutations of Groups Using C# Generic IteratorsOct 09, 2007. Many problems we run into as developers deal with slicing and dicing groups of objects. In this article I'll cover building a library of utility methods using C# object enumerators to perform group permutations and find Cartesian products of groups.
  • Find the First and Last Days of the Month with C#Oct 31, 2007. This article shall describe a very simple approach to finding out the first and last day of the month based upon either a selected date or selected month.
  • Sample Application: Falling Apples GameJan 08, 2008. This article is a sample application using structures, bitmaps and other concepts. Hopefully you find it an enjoyable example.
  • Functional Programming with C#: Lazy CalculationJan 20, 2008. I ran across Mike Gold’s nice algorithm for finding primes using LINQ syntax and thought I’d use his idea as a base from which to demonstrate one of the more subtle features in functional programming: lazy calculation.
  • Find and Close the window using WIN APIFeb 01, 2008. This article explains how to find and close the window using Win API.
  • Find, Minimize, Maximize, Restore the windowFeb 05, 2008. This article explains you how to find, minimize, maximize, restore the window using win API.
  • High Performance Abstraction Layer for Non-Blocking Asynchronous Thread Safe SqlServer CallsApr 25, 2008. One of the things I find myself doing frequently is writing (and re-writing) plumbing code to execute database CRUD operations. I wrote an abstraction layer over asynchronous SqlServer calls that allows developers to correctly make async calls agains SqlServer without having to deal with any of the complex plumbing normally required. All source code is included with this article.
  • Convert a LINQ Query Resultset to a DataTableJun 24, 2008. After a long struggle I find out the way to convert a Linq Query resultset to DataTable object. The attached source code shows how to do it.
  • Brushes in WPFJul 30, 2008. This article discusses types of brushes found in WPF and how to use them in your applications.
  • Working With a ScrollViewer Control in a WPF ApplicationAug 21, 2008. The ScrollViewer is an object that represents a scrollable area that contains other visible controls, it could be found within the System.Windows.Controls. At the contrast of a ScrollBar object, the ScrollViewer is a WPF new feature. So let’s discover its principal characteristics through this article.
  • Adding FooTnotes to a Word Document Programatically (MS Office 2007 word)Oct 06, 2008. This is an article about adding footnotes to a word document programatically. I had this as one of my requirement while generating word documents dynamically, and i really struggled to acheive it, as well as find some help online.
  • Dynamically Loading an assembly at Runtime and calling its methodsOct 14, 2008. This article explains how to load an assembly dynamically and call its method.
  • Web Application ArchitectureNov 09, 2008. This article is about web application architecture. In this article you see how to separate each layer and why it's necessary for good application architecture. Also a small introduction to the Spring Framework and ORM can be found in this article.
  • Basic password finder in C#Nov 30, 2008. This article shows how to create a very simple password finder using brute force and windows message sending in C#. It is aimed at those who are familiar with C# and are just starting with windows programming.
  • Import Data from Excel to a SQL Server databaseJan 16, 2009. This article mainly describes about how to import the data from Excel sheet to the SQL Server database.
  • Downcasting in C#Mar 01, 2009. This article describes a simple approach to downcasting in C#; downcasting merely refers to the process of casting an object of a base class type to a derived class type. Upcasting is legal in C# as the process there is to convert an object of a derived class type into an object of its base class type. In spite of the general illegality of downcasting you may find that when working with generics it is sometimes handy to do it anyway.
  • Accessing Windows Forms Controls Across ThreadsApr 23, 2009. Many articles exist on the web regarding properly handling multiple application threads and accessing data across those threads, but this article will aim to remove much of the ambiguity or inacurate information found in many other articles.
  • Retaining your best peopleApr 25, 2009. You can replace equipment, infrastructure, tools, etc but at the end of the day it’s the people i.e. human capital which is the critical success factor in today’s competitive environment. Retaining key talent is one of the topmost priorities for all successful managers.
  • Creating rich mobile User InterfaceJun 26, 2009. The success of contemporary mobile applications is determined by both, rich functionality and attractive GUI. Let's find a way how to be successful and effective in development of such applications.
  • How to find your search location using asp.netJul 08, 2009. Here I am going to discuss a simple application to find your search location in the google map using asp.net with C#.
  • StringBuilder Class in C#Jul 17, 2009. In this article I will explain about StringBuilder Class in C#.
  • How to turn a mobile device into a mighty survey assistantJul 29, 2009. Marketing research and perfect customers’ knowledge are key factors for successful business. One of the best ways how to get to know your customers and their preferences is running surveys. Usually, the surveys are run by mobile workers using paper based forms. It might sound archaic, yet there are companies that use this manual approach. However, this outdated process can be easily replaced using mobile devices allowing data processing automation.
  • Notepad in C#Aug 17, 2009. Advaance Notepad that provides searching,replace,goto and color change features
  • Find Controls by Name in WPFOct 03, 2009. FindName method of FrameworkElement class is used to find elements or controls by their Name properties. This article shows how to find controls on a Window by name.
  • Adding CheckBoxes in SharePoint GridView (SPGridView)Oct 29, 2009. In this article, I am going to show how to add a checkboxes in SPGRidVIew. I will iterate through the SPGridView to find out the selected rows.
  • Measure Execution Time of Code in C#Nov 03, 2009. This article demonstrates how you can find out how much time your code is taking in execution using C#.
  • Reading XML Documents using C#Nov 23, 2009. In this article I will explain you how to read an XML document in C#.
  • Custom String Methods using C# Jan 27, 2010. In this article I will explain you about the Custom String Methods using C#.
  • Regular Expressions in C# Jan 28, 2010. In this article I will explain you about the Regular Expressions in C#.
  • Creating message body by parsing document from Document Library and sending mail in SharePoint 2007Feb 08, 2010. This article will give an idea of, How to parse a document from Document Library and replace with dynamic values at run time, How to send mail in SharePoint using SPUtility class and Introduction of a real time problem to use above said features of SharePoint.
  • Silverlight IntroductionFeb 23, 2010. This article will be very helpful for the beginners who want to know and start development on Silverlight projects, if you are already working on Silverlight you will find complete understanding of Silverlight Introduction
  • When mobile solutions play a crucial role, bet on well-proved qualityApr 13, 2010. When targeting Windows Mobile platform, use of 3rd party controls is necessary. Let's find out what the most complete set of .NET Compact Framework components from Resco can offer.
  • How to: Remove recent projects from VS 2005 and VS2008Apr 20, 2010. In this article I am going to show you how to replace the recent projects available in VS 2005 and VS2008.
  • Developing a Tablet Application for Sales ForceMay 19, 2010. Mobile access to data is becoming part of our lives. Not only in personal sphere, but especially in variety of industries can be seen a growing demand for mobile data access. People use laptops, smartphones and pocket PCs and the market is opening for tablets more than ever before. Let's find out what developers might use when developing tablet applications.
  • 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.
  • Replace WCF with RIA Services for Non-CRUD OperationsJun 16, 2010. In this article we will have a look at a scenario where RIA service will not deal with CRUD operations.
  • Build a Mobile Application in just 4 MinutesJul 01, 2010. Would you believe that a functional mobile app can be designed and build before you finish a cup of coffee? Probably not. But I would like to convince you that the reverse is true. Read on to find out the details.
  • Toolbar in C#Jul 18, 2010. Toolbar control is not available in Toolbox of Visual Studio 2010. ToolStrip control replaces Toolbar in Visual Studio 2010. But for backward compatibility support, Toolbar class is available in Windows Forms. In this article, I will discuss how to create and use a Toolbar using Toolbar class in a Windows Forms application.
  • Modification in string using Stringbuilder class in C#Jul 27, 2010. Modification in string using Stringbuilder class in C#
  • How to Approach a .NET InterviewAug 14, 2010. If you find yourself in a position where you need to find a new job, you have to deal with the incovenient but necessary interview process. This article will give you some of the tools you need to shine when interviewing for a technical programming position.
  • Developing Autosuggest using JQuery and WebservicesAug 16, 2010. Autocomplete is an input field that enables users to quickly find and selecting some value.
  • Add, Remove, Replace Strings in C#Aug 21, 2010. This code snippet shows how to add, remove and replace strings in C#.

About Find-and-Replace

NA

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