C# Corner

Resources  
  • Creating an Empty Project using VS.NETDec 04, 2000. This tutorial guides you towards your first C# Empty project step by step. After that I'll show you how to add a class to the project and few members to the class and call this class members from the main method.
  • 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#.
  • C# and its FeaturesJun 09, 2001. C# is a modern, type safe programming language, object oriented language that enables programmers to quickly and easily build solutions for the Microsoft .NET platform.
  • 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.
  • Macro to Update References of all Projects in a SolutionJul 24, 2002. When working in enterprise development there are occasions when you have a solution file with 10 or more projects in it all using private assemblies.
  • Using Visual Studio .NET to Build and Deploy ApplicationsJul 29, 2002. No matter how much time you spend designing your application there is one key stage where it can all fall apart, the build and deployment stage.This is a first in a series of articles in which I am going to demonstrate how to use Visual Studio .NET.
  • Master-Detail Display using Nested Repeater Web Forms ControlAug 05, 2002. In this example, we will create a web page that displays a formatted view of data with a master detail hierarchy using nested Repeater controls. We will use the Northwind sample for our example. There are many different ways to accomplish this task. We will use data binding and data relations in an effort to get a simple solution.
  • Cryptography in Microsoft.NET Part I: EncryptionDec 12, 2002. Microsoft .NET has pre-built solutions to all of these in each application domain, viz., ASP. NET, Web Services, Serviced Component etc. It enables building secured application by simple configuration as in ASP.NET to full fledged programmable security as in code access security and Cryptography.
  • Global Assembly Cache(GAC) HellJan 03, 2003. After having worked on a project involving heavy use of the Global Assembly Cache, I would like to tell you that using the GAC can be very frustrating. We had a solution which had several projects within the solution. Many of these projects referenced 1 project (utility project) which did a lot of the work which we could reuse.
  • Cryptography in Microsoft.NET Part III: Digital CertificatesJan 08, 2003. Part-I and II of this article discussed the basics of cryptography and its applications in real world enterprise solutions. Part-I discussed the nitty-gritty of encryption and its implementation in Microsoft .NET Framework Class Library (FCL). Part-II discussed the hashing and signature algorithms and their implementation in FCL. It also discussed the two common cryptography applications namely digital envelope & digital signature.
  • Creating a Web User Control in .NETFeb 05, 2003. One of our C# Corner readers gave me the idea of converting my Add/Remove Control from a Windows Form control to a User Web Control, so we will use this control as an example for this tutorial
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. Visual studio.net offers a wide variety of options, which enable the user to create custom and personalized Visual Studio working environments.
  • 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.
  • Office11 Solution using .NET - A White PaperNov 25, 2003. This detailed white paper contains the information about Office 11 support for Microsoft .NET. It also explains Office 11 object model and how to access Word and Excel documents using Visual Studio .NET.
  • Transforming Visual Studio .NET Projects into NANT files using XSLT and .NETApr 16, 2004. I was looking for a solution on how to execute an XSL transform on a C# project file and convert it to a Nant build file. Nant provides the xsl file to do the conversion under the open source license agreement, but Nant does not provide away of producing the transformation.
  • Evolving Register Network using Genetic Algorithms in C# Jun 23, 2004. Genetic Algorithms are powerful AI tools because they can evolve through trial and error and converge into a solution. In this article we will use genetic algorithms to come up with an analog solution.
  • Build a .NET Solution or Project from the Command Line Sep 27, 2004. Devenv allows you to set various options for the integrated development environment (IDE) as well as compile, build, and debug projects from the command line.
  • How to work with Assemblies in InstallShield Developer 7.0Oct 14, 2004. InstallShield Developer 7.0 is the best solution for providing the very easy user interface to author installations having both .NET and side by side components. This article is a step by step walk through of how to create a deployment project using InstallShield.
  • Microsoft CRM Customization - Programming Email Activity AttachmentOct 26, 2004. Microsoft CRM is now on the scene and it is increasing its market share, due to Microsoft Business Solutions muscles and marketing strategy. It is tightly integrated with other Microsoft Business Solutions products such as Microsoft Great Plains, Solomon, Navision.
  • A Comprehensive View of SharePoint Portal Server 2003: Part INov 05, 2004. There are many portal solutions on the market, for example from IBM, Microsoft, Plumtree, Vignette, etc. Microsoft's latest portal solution is "Windows SharePoint Services" and "SharePoint Portal Server 2003". This article will not evaluate different portal solutions but rather explain how to use and develop for "Windows SharePoint Services" and "SharePoint Portal Server 2003" from Microsoft.
  • Web Based Chat ApplicationMar 15, 2005. The article explains about devloping a chat Solution in ASP.Net / C# which is differnt than any of the available solutions and works under any firewall and browser settings.
  • ValidationScriptGeneratorMar 16, 2005. This article gives you a solution for generating a client side validation script in a component model that you can reuse in an ASP.NET project.
  • Simple Captcha with ASP.NetAug 01, 2005. A solution to block bots submitting to your database using C#.
  • M.S. Visio AutomationAug 19, 2005. This article demonstrates the flexibility of Visio products as a development platform by describing the customized business solutions.
  • Design Patterns Part - IAug 26, 2005. Design patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges.
  • Design Patterns in C#Nov 01, 2005. To define design patterns in simple words they are "popular solutions for common design problems". They are very helpful in designing architecture and they also increase ease of communication among the developers.
  • Sudoku generating and solving using C# in PocketPC SDKNov 20, 2005. The article is about a program writen in C# to create a simple game application - sudoku. The game can generate several diffculty level sudokus with one solution, solve previously entered puzzles etc.
  • Introduction to new SECS/GEM driver using SecsToTool.NetJan 06, 2006. SecsToTool.Net is a connectivity solution for the semiconductor equipment that support SECS/GEM communication interface. The SecsToTool.Net SECS/GEM driver SDK is designed to provide a high level method call/reply and event driven environment for your host application (or what we normally called Cell Controller/Station Controller/Equipment Manager) to communicate with equipment.
  • How Easy Cryptography is in VS.NetMar 08, 2006. What can be done regarding the security issues? Part of the solution is to secure important data - more specifically, using strong encryption thats what we will see in this article.
  • 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# .
  • Nullable Types in C#: Basic IntroductionMay 02, 2006. This article gives a quick view in to the problems faced with the value type objects and the solution to the problems. This beautiful facility is introduced by Microsoft as an concept called “Nullable Types” in the C# 2.0.
  • A Guide To Migrate from VS 2003 To VS 2005Aug 07, 2006. This article shows how to to migrate your solution from VS 2003 to VS 2005.
  • Creating a Workflow solution in SharePoint 2003Sep 18, 2006. There has always been a great demand for workflows in SharePoint. If you are a programmer, you can create a workflow solution of yourself and integrate it into SharePoint. In this article, I will give you some tips on how to create a workflow solution of your own.
  • Using Predicates over foreach in ArraysOct 24, 2006. We generally use foreach blocks to iterate through Arrays n Lists in order to operate on them which not only makes our code long n confusing but also makes us compromise on performance. The solution to this lies in Predicates...
  • A Better Solution for Enterprise Architects - SOA : Part IFeb 06, 2007. I would like to begin to determine what SOA (service-oriented architecture) is technically meaning. We can clearly say SOA is a methodology for designing software architectures to utilize and organize distributed systems using loosely coupled software services.
  • ASP.NET HTML Postback Custom ControlMar 01, 2007. Web form controls do not offer a complete solution to ASP.Net design and hence HTML tags are still required. Occasionally the need exists for a postback from an HTML tag, this article presents a Custom Control to address this requirement.
  • Customized Solution & Project Explorer in .NET Using C# and Windows FormsMar 22, 2007. This application will allow us to see any project's or solution's contents as in the Solution Explorer view.
  • Grypto-Grid Solution to Digital SignaturesApr 04, 2007. This article describes as to how a Grid middleware can be easily used for a Cryptography problem.
  • 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.
  • A Strategy for Using Delegates in C#Jun 15, 2007. In a recent article comment I was asked for a sample of how to use a delegate and so I wanted to put together a sample of how we can use delegates in order to implement a strategy pattern in a way that requires much less code that is easier to maintain than when approaching the same solution deriving sub classes using an OOP implementation.
  • Flat File Parsed to XML Using C#Jul 01, 2007. I ran across an interesting problem today where I had to parse a flat file (csv or tab delimited) into an xml document. The solution I arrived at is flexible enough for reuse so I though I'd share the library along with some of my development notes.
  • 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.
  • Crystal Reports.NETJun 06, 2008. This article is intended to illustrate how to build reports using Crystal Report.NET. Reports are important components of enterprise applications and are mainly used to provide a descriptive and summary view of your data in order to discover information in huge volume of data and make correct decisions. This is the principles of Business Intelligence in enterprise solutions.
  • Generics in .Net 2.0 made simple Jun 22, 2008. Generics provide the solution to a limitation in earlier versions of the common language runtime and the C# language in which generalization is accomplished by casting types to and from the universal base type Object. By creating a generic class, you can create a collection that is type-safe at compile-time.
  • Using mobile device's camera in business solutionsJun 27, 2008. In this article, I will demonstrate how to create a smart device application using Microsoft Visual Studio (any of 2005 or 2008 will do) which uses a camera and built-in microphone.
  • Connect to an Excel file as a data source via OBDCJun 30, 2008. This article provides answer to questions asked about how to connect to an excel file as a data source for a given application, I provide the solution via this ten steps walkthrough.
  • Connect to MySQL database - via ODBC without using DSN: Part IIAug 11, 2008. In order to connect to on MySQL method, I propose this more flexible solution, thus, it enables us to customize the connection parameters in one hand, moreover, it enables us to choose which mode should we use. I mean, ADO connected mode using data reader or disconnected mode using data adapter and data set.
  • Integrate WPF Control in your Excel SolutionsAug 11, 2008. In this article, I will show that it is possible to host a WPF control in a excel solution even that Visual studio and the .Net framework doesn’t provide us a way to host directly a given WPF control in an Excel application. To know how to realize such task, then follow this walkthrough.
  • Working with the Uniform Grid in WPFAug 22, 2008. In this article I will introduce the Uniform Grid object. The uniform grid object arranges content in its area so that all the cells in the grid have the same dimension. It represents a perfect solution if someone prefers to prevent the headache of ordering controls within an ordinary Grid object.
  • The quest for the Generic Singleton in C#Nov 17, 2008. While it is a bit tricky to implement the Singleton pattern in C#, the steps necessary are well known. There has however been debate about a generic solution for this. This paper provides 3 possible solutions for the generic singleton, and makes a brief comparison.
  • G-sensor: great toy and a powerful device controlJan 07, 2009. The ability to control a mobile device using touchless technology is becoming very popular in fun and game utilities as well. Can the G-sensor make a break-through in business solutions too?
  • Eight queens puzzle and its solution using C#.NetJan 23, 2009. In this article I am going to describe about Eight queens puzzle. and how to solve this puzzle.
  • Developing Finger-Touch Enabled Mobile ApplicationMar 04, 2009. This article presents how easy it is to develop graphically attractive and fully functional app for CRM solutions.
  • Using Visual SourceSafe 2005 with Visual Studio 2005Mar 16, 2009. Visual SourceSafe 2005 (VSS) is a source or version control system implemented as a client/server application creating a virtual library of files which acts as storage file system. In this article, I will show how two developers can work together in a Visual Studio.NET project to cooperatively develop a solution using the LAN plug-in for Visual Studio.NET integrated with this IDE.
  • Promoting Schemas Properties in BizTalk ServerMar 18, 2009. A common scenario in a BizTalk solution is to subscribe to a message based on its content or context and make decisions based on the underlying values. This is known as content-based routing. In this article, I will cover the principles and techniques to expose this sort of metadata in BizTalk Server.
  • WPF Practical SolutionsApr 06, 2009. This document describes step by step solution to some of general problems developer face in wpf application.
  • Test-driven development approach for WCF Web servicesApr 11, 2009. In this article, I will show how programmers can use the test-driven development approach to implement and test Web service solutions.
  • A prototype of mobile SFA and CRM software solutionsApr 28, 2009. Resco MobileBusiness ESP is the enterprise solution prototype especially designed for development of SFA and CRM solutions.
  • Setting Null Value to an Entity Property Through Textbox ControlMay 12, 2009. In this article, I want to document a bug in Visual Studio. NET concerning to setting a null value to entity property’s through a Textbox control. There is a common scenario to have an entity type in your data model where some attributes are optional. When you develop a rich client application using the Windows forms, data binding techniques and a Textbox to enter the simple data, and you want to set null the optional attributes of the underlying data source by leaving in blank the Text property of the Textbox control; then there is a missing feature for the Formatting and Advanced Binding dialog box for null values. They should have a checkbox there to allow people to use blank as null. In this article, I will show one simple solution to this bug.
  • Model View Presenter (MVP) design pattern and data bindingJun 03, 2009. Model View Presenter (MVP) design pattern is the evolution of the MVC design pattern and it’s aimed at providing a cleaner separation of concerns between the view, the model, and the controller improving the architecture (you can use several UI technologies without recompiling the business logic components) and testability of the enterprise solution. The pattern was originally developed at Taligent in the 1990s. In this article, I will explain the principles and how to use the MVP design pattern along with data binding with an example using C# language in Microsoft.NET.
  • 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.
  • Ajax with Postback RitalinAug 01, 2009. Recently I noticed a simple and nice control giving more functionality to partial postback, it is Postback Ritalin. This is built on top of ASP.NET Ajax extensions and offers a nice solution to a common problem i.e. disabling button during partial postbacks.
  • Calling External Assemblies From OrchestrationsAug 07, 2009. In this article, I will cover how to call business logic contained in external assemblies from orchestration in order to reuse this component's logic. For the solution, I will create a library with a component which implements the string concatenation logic. Then this assembly will be referenced from an orchestration and the underlying method will be invoked.
  • Receiving Messages With Multiple Schemas in a Single OrchestrationSep 18, 2009. In this article, I will cover how to receive two messages with different schemas in a single orchestration in order to process them instead of creating separate orchestrations for each message with identical business logic. For the solution, I will use the Listen shape along with two Receive shapes each of them listening for different messages.
  • Progressbar control in Silverlight 3.0Nov 16, 2009. In this article, I will explain couple of things step by step. First how to work with Progressbar control of Silver Light 3.0.Then how to consume WCF service in Silverlight application when both are in same solution.
  • JQuery Message Boxes with Great look'n Feel for ASP.Net Dec 01, 2009. Here in this article is the solution for message box with great styles and with no more Extenders Coding.
  • Move Windows Form Without BorderDec 06, 2009. Some time its necessary that we want to move form without border. So here is the solution to move that type of form.
  • Genetic CloudJan 24, 2010. Complex optimization tasks, like travelling salesman problem, can be solved by simple algorithms with random searching component. Genetic algorithm is one of such approaches. It gives better solution on the big population sizes, but the execution time grows non-linear with population size growth. Another way to increase accuracy is to have several parallel runs. The additional resources for parallel runs could be taken in a Cloud.
  • Update using DataGrid in Silverlight 3Feb 03, 2010. Here in this article I will show the solution for updating the datagrid fields.
  • 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.
  • Test-driven development approach for database applicationsMay 10, 2010. In this article, I will show how programmers can use the test-driven development approach to test enterprise solutions and its underlying data layer which should also support transactions in order to manage persistent data and leave the database systems in correct states.
  • Using Outlook as a Print ServerJun 23, 2010. In this article, I will show you solution for using Outlook as your print server.
  • Exporting datagrid from to an Excel, Word and notepad formatJul 27, 2010. There are several solutions for this implementation and in this example we will convert the datagrid to excel, word and notpad format.
  • The '8 Commandments' for Choosing a Unit Testing SolutionJul 29, 2010. In this article you will learn how to use 8 Commandments for Choosing a Unit Testing Solution.
  • Singleton Design Pattern in C#Aug 26, 2010. Design Patterns provide solutions to common recurring problems. Design patterns can be classified as creational, structural or behavioral .Singleton and Factory patterns are two of the creational pattern.Here we will discuss these two patterns.
  • Using Silverlight in XNA - Part III: Silverlight MenusSep 29, 2010. In our previous article (Using Silverlight in XNA: Part III), I showed you how you can use these technologies in a single solution. In this article we will create a Menu UI and use it in our XNA Project.
  • Designing and implementing a Data Warehouse: Part 3Oct 04, 2010. This is the third article of a series of articles that I want to write in order to share my knowledge and experience in this subject matter. In this part and the next one, we will see how to implement the technical solution for a data warehouse.
  • Memory Handling on NULL Values Using Sparse ColumnsOct 11, 2010. Sparse columns is a new feature in SQL Server 2008. Thr feature enables us to store null values effectively. Ideally, if the column is NULL, then the data won't be stored in the database and it's cost effective solution to save the space. If your table has more Null values, we can use this solution.
  • DataReader Vs DataSet?Nov 02, 2010. Confused how to use DataSet and How to use DataReader? I am giving out a solution to this.
  • Mocking in .NET with MoqNov 09, 2010. In this article, I will show how to use Moq as the mocking framework in testing environments to isolate dependencies between objects in .NET solutions.
  • Solution Development using SAP .NET Connector in Visual Studio .NETDec 23, 2010. This document mainly goes through some important points which would help the programmer to successfully implement an application using SAP & ASP.NET.
  • SharePoint Development MethodologyDec 30, 2010. In this article I am giving small introduction on SharePoint development methodology. The methodology suited for SharePoint is MSF methodology Microsoft Solution Framework. This article will give an introduction about the same
  • Web Solution Packages Jan 11, 2011. Managed code assemblies can be deployed to a SharePoint server using a new capability called Solution Deployment.
  • Self-Service Analysis with PowerPivotJan 19, 2011. Microsoft SQL Server 2008 R2 comes to the rescue for these users with two new features to meet these needs-SQL Server PowerPivot for Excel 2010 and SQL Server PowerPivot for SharePoint 2010. PowerPivot for Excel gives analysts a way to integrate large volumes of data outside of a corporate data warehouse, whether they are creating reports to support decision making or prototyping solutions that will eventually be part of a larger BI implementation.
  • Find nth element from last in a Linked ListJan 27, 2011. One very interesting problem is to find the nth element from the end in a linked list. Now it's very easy to find the nth element from the beginning of the list and can be done in one traverse. So what are the various solutions we can think of.
  • Sandboxed Solutions in SharePoint 2010Feb 14, 2011. In this article I am describing one of the new features of SharePoint 2010; it is Sandboxed Solutions. One of the biggest problems with SharePoint 2007 development is that all of its solutions run with full trust. This makes SharePoint administrators hesitant to publish any solution that may disturb the stability of the SharePoint farm.
  • How to deploy a sandbox solution using Powershell in SharePoint 2010Feb 14, 2011. How to deploy a sandbox solution using Powershell in SharePoint 2010.
  • How to block the sandbox solutions in SharePoint 2010Feb 14, 2011. Here we will be seeing how to block or unblock the sandbox solutions in SharePoint 2010
  • Extending Collections in .NETFeb 24, 2011. Recently I found myself adding custom code to convert the collections to DataViews so that I could assign my filters and let the View take care of the rest. In this article I will try to cover the problem, design, and solution implemented.
  • Remove Recent Projects, Solutions, Recent Files, Find and Replace Entries From Visual Studio.Feb 24, 2011. This article will show how to remove Recent Projects, Solutions, Recent Files and Find and Replace entries from Visual Studio.
  • Sending Mail from Gmail and Save the file in PDF FormatMar 14, 2011. This is an article for sending Mail from Gmail and Save the file in PDF Format and shown PDF File in Solution Explore.
  • How to deploy application page using sandbox solution in SharePoint 2010Mar 23, 2011. In this article we will be seeing how to deploy application page using sandbox solution in SharePoint 2010.
  • How to create Visual web part using Sandbox solution in SharePoint 2010Mar 23, 2011. In this article we will be seeing how to create a Visual Web Part using Sandbox solution in SharePoint 2010.
  • SQL Server Database Mirroring: Part 1Mar 28, 2011. In SQL Server Log Shipping and Mirroring can work together to provide solutions for high availability and disaster recovery.
  • Create XML file using ASP.Net Mar 29, 2011. How to create XML file using ASP.Net and store in solution explorer.
  • How do you convert numbers to wordsMar 29, 2011. There are many solutions to converting numbers to words, the best one is a matter of choice, the bigger the number, the more you have to deal with, or do you!
  • Custom Sandbox Application Page in SharePoint2010Apr 07, 2011. From my previous article for “Reference web part in SharePoint 2010”, I am extending the same sandbox solution with this article. So you just need to download code for the sandbox web part and follow the steps below.
  • Create Pages based Layout Pages using sandbox with full trust ProxyApr 18, 2011. In this article I am explaining the step by step procedure to create a sandbox solution with full trust proxy.
  • Fixing error: SetConfigurationSettingPublisher needs to be called before FromConfiguration Setting can be usedApr 25, 2011. How to use SetConfigurationSettingPublisher needs to be called before FromConfiguration Setting can be used error [Other Solution].

About solution

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!
techbash 2016