C# Corner

Resources  
  • Get IP Address of a HostDec 03, 2000. The .Net DNS class can be used to get a host name or an IP of a given host name. To use DNS class in your project, you need to include System.Net
  • Get a database table propertiesJan 22, 2001. Get a table properties such as column names, types etc using DataColumn and DataTable.
  • Creating a Windows Service in C#Jan 23, 2001. Windows Services is a new name for NT Services in .NET. This tutorial steps you through creating a Windows Service and how to install and start it.
  • Naming Guidelines in .NETApr 20, 2001. Commenting and following a uniform naming guidelines in your code is one of good programming practices to make code more useful.
  • Color GuideJun 11, 2001. This Program will generate all the colors that are supported in C# according to the Name.
  • What's in Mobile Internet Tool?Jul 05, 2001. The New Name For .NET Mobile Web Is Mobile Internet Toolkit.
  • A Simple C# Utility to Help You Invent NamesJul 10, 2001. I wrote this simple console utility to help me think of a new name for a project I was launching.
  • Resurrection and the .NET Garbage collectorJul 13, 2001. This article will explain and demonstrate a phenomenon that is unusual in the .NET implementation of the garbage collector. The phenomenon is known as resurrection. As the name suggests, an object is marked for destruction and in the last possible moment it is resurrected from the ‘dead’ and reactivated.
  • Enumerators in C#Oct 25, 2001. An enumeration (enum) is a special form of value type, which inherits from System.Enum and supplies alternate names for the values of an underlying primitive type.
  • Redirecting Standard Input/Output using the Process ClassDec 18, 2001. When a program starts, a new process (a program in execution) is created by the operating system,and this process is identified by its process Id and also a name.
  • .NET COM Interoperability - Part 2: Using .NET Component from COMApr 02, 2002. When a COM client calls a DotNet object, the DotNet framework will create a COM callable wrapper (CCW). COM clients use the CCW as a proxy for the managed object.
  • Tracking Time in a Window ApplicationApr 15, 2002. The program reads from an XML file to get the data about names and birth dates, so it is easy to add or remove names without changing the code in case my son decides the program should include his pet dog or turtle.
  • Assembly Browser: Browsing a .NET AssemblyMay 17, 2002. This program lets you browse an assembly and lists the methods and the parameter name and parameter type for each assembly.
  • 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.
  • Create FTP and Web IIS Virtual Directory using C#Jul 03, 2002. In this example we will create a Windows Form Project that will create new FTP and Web IIS Virtual Directories from code based on the name and path specified by the user.
  • Macro to Add Strong Names to VS.NET ProjectsAug 06, 2002. When writing class libraries in Visual Studio .NET that are going to be placed into the GAC you will need to add strong name to the assembly. This is normally done by dropping out to a dos prompt and running the .NET utility sn.exe and then updating the assembly to reference the newly created .snk file.
  • 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
  • Getting System InformationSep 26, 2002. The attached source code returns the system information for your machine such as machine name, operating system, current user and logical drives.
  • Customizing Default Project SettingSep 26, 2002. "How do I change the default exe name of my project?". I received this question in an email.
  • Low Down on Installing a .NET Assembly into the Global Assembly Cache (GAC)Jan 02, 2003. This article will walk you through the process of giving your assembly a strong name, and installing it into the GAC.
  • 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.
  • Using Stored Procedures in Conjuction with DataAdapterJan 09, 2003. A stored procedure is a named collection of SQL statements that are stored in the database. To the client a stored procedure acts similar to a function.
  • Automating the Process of Getting Latest Files from VSSJan 22, 2003. In this article, I will show you how to write an automated process of taking VSS backup. Initially, this application was written with some hard coded settings such as user name, password. and VSS path.
  • BuckyBalls: An Animated DirectX9 DemonstrationJun 02, 2003. BuckyBalls is an animated Managed DirectX demonstration. A buckyball, or fullerene, is a complex carbon molecule whose full name is buckminsterfullerene. The molecule contains 60 carbon atoms which form what is called a truncated icosahedron. It is shaped like a soccer ball or a geodesic dome, and is named after Buckminster Fuller, the inventor of the geodesic dome.
  • Code Generator for Basic Stamp II MicrocontrollerOct 15, 2003. The Basic II Stamp is programmed by the language its named after, Basic. The language is a combination of Basic syntax and built in key words that control the Basic Stamp II chip.
  • 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).
  • Debugging a Compiled ComponentFeb 02, 2004. After an assembly is compiled into a dll in a release mode, it is very difficult to gather information from it such as runtime performance, parameters values, etc.
  • Configuring Publisher Policy FileFeb 20, 2004. Versioning in the Microsoft .NET Framework is managed at the assembly level and is only used when locating strong-named assemblies. By default, the common language runtime loads the assembly whose entire version number matches the version number in the calling assembly's metadata.
  • Line Count UtilityJun 12, 2004. Program returns count of code lines and file names in which code lines will be counted.
  • Crystal Reports - Geterogeneus databases: SQL Server, Oracle, Unidata, BtrieveAug 24, 2004. Crystal Reports is the most flexible tool on the market and it has market recognition. Multiple software vendors offer Crystal Reports as the main reporting tool: Microsoft, Best Software, Oracle to name a few. In this article, you learn some tips on using Crystal Reports versus other options.
  • Storing Images into a DatabaseOct 18, 2004. In order to provide your application with cool pictures you can employ two techniques (at least). One of them is that you can save the pictures in a folder and store the path to each one in a database or configuration file. The other one is to store the entire file into a database, along with its file name.
  • Public Key Token Generation AlgorithmJan 31, 2005. The PublicKeyTokenGenerator class and a small utility that generates Public Key Token from the Public Key using that class.
  • 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.
  • Meter Windows ControlMay 02, 2005. This article is a revised version of previous article named Windows Forms Controls in C# and .NET (Analog Meter).
  • MouseStick Control.May 13, 2005. The attached source code is a MouseStick control written in C# and Windows Forms. The MouseStick control gets its name from the fusion of a joystick with a mouse. Think of the line in the MouseStick as a joystick that is controlled with your computer's mouse.
  • How to Maintain a CodeGroup in Security Policy at Runtime?Jul 05, 2005. Whenever protected resources are accessed by an assembly, it’s permissions are determined by the code access security system of CLR. Each permission set granted to an assembly is based on the assembly's evidence (such as its URL or publisher certificate, strong name), which in turn is based on configurable security policy.
  • Creating a Dynamic Configuration Dialog in C# and .NETJul 10, 2005. This article will show you how to create a configuration dialog that builds itself from the existing application configuration name-value pairs contained in the appSettings of the app.config file.
  • Utilize the Full Functionality of the Whidbey File ManagementNov 15, 2005. This article is based on a pre-release version of Microsoft Visual Studio 2005, formerly code named "Whidbey". All information contained herein is subject to change.
  • Creating Custom Template for Web User Control in Visual Studio.NET 2003 Nov 25, 2005. This article shows you how to create custom template for web user control in visual studio 2003. The attached sample application will install the custom template for the name given for either VB or C# language and also uninstall the custom template.
  • Convert Long to Short File Names in C#Mar 17, 2006. Here in this article is very simple code for short to long and long to short file names conversion.
  • 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.
  • 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.
  • Creation of objects using Late-Binding techniqueSep 10, 2007. This article will explain how we can create objects in runtime, using late binding technique. Especially for a situation where you will come to know the class name only in runtime.
  • Consuming the Yahoo local Search Service in a C# Win Forms ApplicationJan 17, 2008. This article will demonstrate one approach that may be used to consume yahoo local search service to return a list of business locations through the use of a zip code based search for a business name or product.
  • Introduction to the Assembly ConceptJan 17, 2008. This is a brief introduction to the assembly concept, it shows importants issues for a programmer to know.
  • Geocoding a physical address using yahoo web services and c#Jan 17, 2008. This article tells you about the web service named yahoo geocoding service.
  • Killing Processes From a Windows Form Application in C#May 01, 2008. This article provides you a simple example of how to use the System.Diagnostics.Process library to display a list of running processes, and to select and kill processes by their process name and ID.
  • Introduction to "Acropolis"Mar 12, 2009. This article explains about Microsoft code-named Acropolis for creating windows client applications.
  • Using a Combobox to Select ColorsMar 19, 2009. This is a short article on how to use a combo box control to display and select all the named colors.
  • Backup utility in .NetApr 03, 2009. This is a article named backup is used to create a backup of your data and can restore your deleted data also.
  • Analizing data to best customers using Crystal ReportsMay 22, 2009. In the sales analysis, there is a principle named the Pareto principle also known as the 80-20 rule. The 80-20 rule states that 80% of the effects come from the 20% of the causes and then the remaining 20% effects come from 80% of the causes. Pareto observed that 80% of the land in Italy was owned by 20% of the population. One example in the IT world is that Microsoft has noted that 20% of the most reported bugs are the causes of the 80% of the errors or crashes of the systems. After Pareto observed this principle, a lot of application appeared. One of the most common applications of the Pareto principle is in the sales analysis. Companies perform analysis in their sales orders in order to discover the best customers, that is, the 80% of the sales come from the 20% of the customers. In this article, I will show how to perform a sales analysis using Crystal Reports. For this example, we will use the AdventureWorks database shipped with SQL Server 2005.
  • C# 4.0: Named ParametersJun 15, 2009. C# 4.0 has introduced a number of interesting features which includes Optional Parameters, Default Values, and Named Parameters.
  • Enable and Rename SA account in SQL Server 2005/2008Jul 09, 2009. This Article shows How to Enable/Disable sa Account in SQL Server.
  • DriveInfo Class in C#Jul 16, 2009. In this article I will explain about DriveInfo class of System.IO namespace which is used to get information about disk drives.
  • Page navigation with values in SilverLightJul 17, 2009. This article will show, How to navigate between two SilverLight pages in silverLight2.0. This article is giving step by step illustration on how to navigate and pass values between two SilverLight pages. In this SilverLight application user will input her name and two numbers in one Silverlight page and user will get greeting message and summation of input number in other SilverLight page.
  • Named Argument in C# 4.0 Jul 27, 2009. In this article I will talk about a very new and highly useful feature of c# 4.0. I will give introduction of Named Argument. I will give one sample on possible usage of Named Argument.
  • Optional Argument in C# 4.0Jul 29, 2009. This article will give a very basic introduction of Optional Argument in C#4.0. This article will explain how Operation overloading and Optional Argument is different with samples. This article will give different syntax with Named parameter to work with Optional arguments.
  • Programmatically Fetching User Name of SharePoint site collection using Object ModelAug 11, 2009. In this article, I will show you how to fetch all the user name of a SharePoint site collection using program or Visual Studio.
  • 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.
  • Data Components in Visual Studio .NET: Part IOct 13, 2009. In this article, I will help you in understanding using the Server Explorer for Adding a new Connection.
  • Populating name of files from SharePoint Document library in a drop down listNov 04, 2009. This article will show how to iterate through SharePoint document library and list out all the file names and bind the list to a drop down list.
  • Connecting to a Data Source in ADO.NETDec 30, 2009. In this article I will explain Connecting to a Data Source in ADO.NET.
  • 9 simple steps to run your first Azure Table ProgramJan 11, 2010. Azure has provided 4 kinds of data storages blobs, tables, queues and SQL azure. In this section we will see how to insert a simple customer record with code and name property in Azure tables.
  • Simple 7 steps to run your first Azure Blob ProgramJan 24, 2010. In this section we will create our first program using Azure blobs. This article creates a simple web page where we upload image files which are stored in azure blobs. We have also created a simple search text box which will help us to search the image blobs with the image file name.
  • A named permission set in C# Mar 09, 2010. In this article I will explain you about a named permission set in C#.
  • Method Parameters in .NET 4.0Apr 20, 2010. In this article I explain about optional parameters and named parameters.
  • New features of C# 4.0Apr 27, 2010. In this article, I want to talk about the new features being integrated with the new version of C# 4.0 language.
  • 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.
  • Development of Text Editor Teditor 1.5Jun 01, 2010. This application is adapted to viewing text files, it can carry out also creation of new files and editing of existing files. It allows the user to enter the name of a created or opened file. The user can scroll the text in a multi-line text component then there are seen other areas of the text.
  • Enumerate the ALL SQL Server Instances in NetworkJun 01, 2010. In this article I will teach you how to get names and all other information of sql server instances that are in network.
  • How to get System Environment information in WPFJun 07, 2010. This article demonstrates how to get system environment information like Operating System,.NET Version, Machine Name, Username, Domain Name, Directory Name, Command Line using wpf.
  • How to change the existing Name ServerJul 06, 2010. This article will demonstrate how to change the existing Name Server and details about Domain Control Panel.
  • Three State Work flow in SharepointAug 18, 2010. Here I am showing you how to use sharepoint default work flow named three state work flows.
  • WebException or Remote Server Name Could not be Resolved in WCF Data ServiceAug 19, 2010. This article will give a brief explanation on how to handle remote server name could not resolved exception in WCF Data Service.
  • Get Property and Method Name of WMI Classes Programmatically in C#Sep 03, 2010. This article shows how you can get property name and method name programmatically instead of writing explicitly.
  • How to configure default catalog and channel name of commerce server into sharepoint channel configuration list programmatically Sep 20, 2010. This will configure sharepoint channel configuration list programmatically to avoid manual configuration of commerce server's default catalog and channel name as part of integration of sharepoint site and commerce server.
  • Generic Method for Parsing Value Type in C#Oct 07, 2010. In this article I am going to explain how to create a generic method named GetValue() that can parse int, float, long, double data types.
  • C# 4.0 Method ParametersOct 29, 2010. This article talks about optional parameters.
  • How to resolve "The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft'Nov 21, 2010. In this article we are going to see how to resolve "The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) "For console application in Visual Studio 2010.
  • CUDA integration with C#Nov 25, 2010. This article will focus on how to create an unmanaged dll with CUDA code and use it in a C# program. The example will show some differences between execution times of managed, unmanaged and new .NET 4 parallel versions of for() loops used to do computations on arrays.
  • Named arguments in C# 4.0Dec 02, 2010. This new feature of c# 4.0 allows users to define arguments in the calling statement in any order rather than defined in the parameter list.
  • Programming with App Bar and Jot Control in Windows Phone 7Dec 07, 2010. The ApplicationBar serves the same role as a menu or toolbar that you might find in a conventional Windows program and Jot displays finger input using a class named InkPresenter, which originated with tablet interfaces.
  • How to get the User Profile Synchronization Connection names from SharePoint 2010 using C# Dec 28, 2010. In this article we will be seeing how to get the User Profile Synchronization Connection names from SharePoint 2010.
  • How to remove the user profile from SharePoint 2010 using C# and PowershellDec 28, 2010. In this article we will be seeing how to remove the user profile based on the specified Account Name from the user profile database in SharePoint 2010.
  • Get All the Tables Name using LINQDec 28, 2010. In this article you will learn how to get the names of all the tables using LINQ
  • Listing columns name with type of a table using LINQDec 29, 2010. After my last article, I got a question asking how to list all the Column names of a given table using LINQ.
  • Animating Perspective Transforms in Windows Phone 7Dec 31, 2010. Silverlight 3 introduced a new UIElement property named Projection that allows setting non-affine transforms on graphical objects, text, controls, and media. Non-affine transforms do not preserve parallelism.
  • Using Stored Procedure in LINQJan 04, 2011. We have a strored procedure as below. It is a very simple SP returning grades of the student. This stored procedure name is GetStudentGrade .
  • Pivot and Panorama controls in Windows Phone 7Jan 07, 2011. The phone’s portrait form factor, the ease of multi-touch, and a recent emphasis on "fluid user interfaces" all suggest other types of layout. Two such alternatives are available in Windows Phone 7 in new controls named Pivot and Panorama.
  • How to Set Focus to Any Form ControlJan 20, 2011. This article will show you how to move focus from one control to the next without the need to name the controls.
  • Adding Groups / User names and Permissions for a Directory in C#Feb 09, 2011. This article shows you the procedure to create a directory, adding a specific Group or the User Name account for that directory and providing the required permission for the same.
  • Dynamically Naming the ConstraintMar 04, 2011. A constraint is nothing but a condition placed on the column or object. Let's see a small example of creating a Primary Key constraint.
  • Expression Blend 4: PathListBox ControlMar 31, 2011. The PathListBox is a new control included in the Expression Blend 4 SDK that builds on the original functionality of the ListBox, displaying multiple items and arranges them based on defined paths named appropriately LayoutPaths.
  • How to use LINQ in .NETApr 22, 2011. LINQ stands for Language Integrated Query, so named since it is part of the programming language like C#.
  • Sharepoint list and data typesApr 29, 2011. Here we Understand the concept of Database, SharePoint List table in SQL server VS, SharePoint List Template, SharePoint and custom data types and Column Name and will see to add, delete, edit the elements in SharePoint List
  • Convert Rows to Columns in SQL ServerMay 29, 2011. This article will help to convert values in rows to column/fields name or headers.
  • Optional and Named Arguments in C#May 31, 2011. In this quick article you will learn about Optional and Named Arguments in C#.
  • Fetching Mobile Operator Name in Windows 7.1 Phone [Mango]Jun 10, 2011. Here you will see how to fetch the mobile operator's name in Windows 7.1 Phone.
  • pascalCase and camelCase Naming SystemJun 17, 2011. In this quick post we will take a look at some un-avoidable naming systems in C#.
  • Windows Azure - Fixing Reconnect Remote Desktop Error: The Specified User Name does not exist. Verify the Username and try Logging in againJul 18, 2011. In this article we are going to see how to fix the error 'The Specified User Name does not exist. Verify the Username and try logging in again' when we try to reconnect to the Remote Desktop Azure Role Instances.

About Naming-Conventions

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.
Download Free eBooks