CSharp

List of Articles in CSharp

How to compute Code Execution time using StopWatch

The performance is most common concerning attribute for any application.I'm going to write about how to compute code execute time using StopWatch with C#.Read more..
By: pranay rana   |    On:  7/29/2011 10:04:08 AM   |    Article

Triple DES Encryption and Decryption using User provided key

In this article, I will explain how to do a Triple DES encryption on a plain text using user provided key. I will calculate a MD5 Hash on the key provided by the user. And that key will be user to encrypt and decrypt the message.Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

How to Encrypt a String in .Net and Decrypt it Using mcrypt_encrypt in PHP

How to Encrypt a String in .Net and Decrypt it Using mcrypt_encrypt in PHPRead more..
By: nsoonhui   |    On:  5/10/2010 2:08:05 AM   |    Article

Introduction to the Tuple in C# 4.0

Through this article, i will introduce in FCL named Tuple which can store n - number of values in it. Yes, you specify the type of each of those variables as generic parameters, and the object will create those values for youRead more..
By: abhi2434   |    On:  11/15/2010 10:05:06 AM   |    Article

How to use IObserver and IObservable Interfaces in C#

In this article I will show how to use the IObserver and IObservable Interfaces in C#. These two interfaces is work with connection to Push based approach on Reactive FrameworkRead more..
By: abhi2434   |    On:  12/15/2010 9:45:30 AM   |    Article

A Test Driven Development Tutorial in C# 4.0

This tutorial is a short introduction to using Test Driven Development (TDD) in Visual Studio 2010 (VS2010) with C#.Read more..
By: Dom Millar   |    On:  5/30/2010 4:48:58 AM   |    Article

How to use ExpandoObject Class in .NET 4.0

In this article, i will explain how to use the How to use ExpandoObject Class in .NET 4.0.The ExpandoObject class is introduced on .NET Framework 4.0 and inherited using many interfaces.Read more..
By: jalpesh   |    On:  4/16/2011 11:54:22 AM   |    Article

Improving Performance with Parallel For Loop in C# 4.0

Since we have multicore processors are now so we can take advantages of multicore processor with parallel execution in C# 4.0. There are some time consuming task for the computer for example a long for loop or similar kind of things. This kind of task can be done parallel with parallel class in C# 4.0.Read more..
By: jalpesh   |    On:  7/12/2011 8:45:09 AM   |    Article

What is the Dynamic Data Type in .net 4.0 with Examples-Tutorial

Dynamic types are new feature of C# 4.0, which can be defined easily by using the keyword dynamic. Dynamic types are not strongly typed i.e not bound with any specific data type, so they are different from implicit data type defined using var which can bind with any data type when we define. Like any other type Dynamic types also have base class System.Object.Read more..
By: pranay rana   |    On:  1/8/2011 9:06:46 AM   |    Article

Optional Parameters in C# 4.0 and Limitations

In this article, I will explain how to use the optional parameter in C 4.0 and what are the limitations or points we have to keep mind before use these types of parameters in coding.Read more..
By: pranay rana   |    On:  1/12/2011 9:14:24 PM   |    Article

How to use Coalescing operator in C#

In this article I will explain how to use Coalescing operator in C#. The Coalescing operator is short cut instead of IF condition.Read more..
By: pranay rana   |    On:  1/16/2011 1:33:19 AM   |    Article

What is the purpose of Nullable types in .NET

Nullable type is new concept introduced in C#2.0 which allow user to assingn null value to primitive data types of C# language. Important to not here is Nullable type is Structure type.Read more..
By: pranay rana   |    On:  1/18/2011 9:53:33 AM   |    Article

What is the use of Anonymous types in C#

Anonymous types are the new concept in C#3.0 which allow to create new types without defining it.Read more..
By: pranay rana   |    On:  2/25/2011 8:45:36 AM   |    Article

How to use ForEach Method with Collection in C#

In this article, I will explain, How to use ForEach Method with Collection in C#.It is help to reduces number of lines code compare with normal for each method and simple.Read more..
By: pranay rana   |    On:  7/29/2011 10:29:14 AM   |    Article

New Features in .NET Framework 4.0-Part03

In the .NET Framework 4.0 have lots of new features for software professionals. Today I would like to share I/O operation in File classRead more..
By: RRaveen   |    On:  7/8/2010 2:58:55 AM   |    Article

Dynamic Type in C# 4.0- New Feature

Dynamic Type is a part of DLR (Dynamic Language Runtime). This DLR is nothing but some added feature to common language runtime.aRead more..
By: Ravish Kumar Sindhwani   |    On:  6/11/2010 9:23:39 PM   |    Article

Dynamic Data type in C#4.0

Dynamic Datatype in C# 4.0 is quit bit familiar to Var Datatype. Deference between Var and Dynamic is VAR initialized on CompileTime and Dynamic initialized On RuntimeRead more..
By: usamawahabkhan   |    On:  5/17/2010 8:16:20 AM   |    Article

Overview of the Dynamic Programming in C# 4.0

C# 4.0 supports Dynamic Programming by introducing new Dynamic Typed ObjectsRead more..
By: usamawahabkhan   |    On:  5/26/2010 9:11:36 AM   |    Article

Outlook Style menu Navigation for Windows forms

Outlook Style menu Navigation for Windows formsRead more..
By: ninethsense   |    On:  2/16/2010 12:55:57 AM   |    Article

Best Practices of Handling Exception in C#

When you are develop any type of .NET Application, the Exception handling is important for all to prevent unwanted crashing of applications. Exceptions are runtime errors which might be caused by some operation illegal to the application. .NET provides a good Exception Model (even though Microsoft wants to change this model) using try/catch which lets us to deal with runtime exceptions from our code.Read more..
By: abhi2434   |    On:  12/7/2010 9:37:50 AM   |    Article

Exception Handling in C#

Exception Handling in C#Read more..
By: skumaar_mca   |    On:  2/16/2010 3:06:03 AM   |    Article

Learning Exception Handling in C# with 8 Tips

Exceptions are unforeseen errors that happen in our programs. Most of the time, we can, and should, detect and handle program errors in your code. Exception is handling is in build feature of.NET framework which find the errors and helps us in handling them.Read more..
By: Vishal Nayan   |    On:  4/28/2011 8:22:12 AM   |    Article

Programmatically Compress and Decompress Files

This lesson is very easy. This lesson focuses on how to compress and decompress files programmatically using .NET Framework and C# -or any language that supports .NET of course.Read more..
By: Geming Leader   |    On:  9/2/2010 10:51:55 AM   |    Article

Search a types of file within the Directory with recursive in C#

Search a types of file within the Directory with recursive in C#Read more..
By: youngmurukan   |    On:  2/15/2010 9:42:15 PM   |    Article

Get Directory Name from the File Path

Get Directory Name from the File PathRead more..
By: youngmurukan   |    On:  2/15/2010 9:42:15 PM   |    Article

Debugging with Async in C#

I can see, there is lots of people is discussing about it in MSDN forums, few people wanted to get rid of the Task from the async methods and really want to deal with normal return types, while others just wanted to get rid of the async postfixRead more..
By: abhi2434   |    On:  11/25/2010 7:29:48 AM   |    Article

Introduction to the Asynchronous Programming in C# 5.0

Before the introduction of these features, we generally rely on traditional approaches of creating Thread from a ThreadPool and consuming a method which needed to be asynchronously called for. Again when the Thread finishes, or during the lifetime of the Thread we need callbacks to notify UI after a while, so that the user gets an impression that the background is updating the systemRead more..
By: abhi2434   |    On:  11/26/2010 7:26:12 AM   |    Article

Implicit and Explicit Object casting with Operator Overloading in C#

Though this article I will discuss how to use cast operators implicit or explicit with arithmetic operation using operator overloading. Create common utility class as well.Read more..
By: abhi2434   |    On:  12/10/2010 9:02:59 AM   |    Article

Checked and Unchecked Conversions in C#

In this article, I will discuss about Checked and unchecked keyword and conversions in C#.Read more..
By: Dhananjay Kumar   |    On:  8/16/2010 9:13:51 AM   |    Article

Call Stack, Call Site and Stack unwinding in C#

In this article, I will explain three basic terms of C#, such as Call Stack ,Call Site and stack UnwindingRead more..
By: Dhananjay Kumar   |    On:  8/17/2010 11:06:58 AM   |    Article

9 Rules about Constructors, Destructors, and Finalizers

First, this writing concentrates of and compares between three programming languages, C#, C++/CLI, and ISO/ANSI C++. It discusses 9 rules that every developer should keep in mind while working with constructors, destructors, and finalizers and class hierarchies:Read more..
By: Geming Leader   |    On:  9/2/2010 3:27:21 PM   |    Article

Serialization vs. Marshaling

Are you somewhat confused between Serialization and Marshaling? This writing would break this confusion up, it would give you a basic understanding of the process of Serialization and the process of Marshaling, and how you can get the most out of each.Read more..
By: Geming Leader   |    On:  9/2/2010 3:29:02 PM   |    Article

Constructors,Static Constructors and Destructors Execution in Inheritance in C#

While taking interview for .NET Technologies i often ask about the execution sequence of the constructor and destructor in inheritance But from the my experience i have found that lots of people are still confused with execution sequence of constructor and destructorsRead more..
By: jalpesh   |    On:  5/10/2010 9:12:34 AM   |    Article

Partial Types, Class and Method in C#.NET 3.0 and 2.0

With C# 2.0 Microsoft has added partial keyword in C#. So what is partial keyword used for. Lets go through the partial keyword in greater detail.Read more..
By: jalpesh   |    On:  5/31/2010 7:07:33 AM   |    Article

The override that was not (Popular Misconception) in C#

The override that was not (Popular Misconception) in C#Read more..
By: j2inet   |    On:  7/17/2010 11:41:03 PM   |    Article

How to filter rows in DataSet using C#

This article explains how to filter rows in a DataSet/DataTable. The example provided will help you get information faster.Read more..
By: ninethsense   |    On:  5/23/2010 5:48:32 AM   |    Article

How to use of Isolated Storage in .NET 3.5

How to use of Isolated Storage in .NET 3.5Read more..
By: abhi2434   |    On:  2/16/2010 3:12:09 AM   |    Article

Validating URL using C# with Regular Expression

Validating URL using C# with Regular ExpressionRead more..
By: amalhashim   |    On:  2/15/2010 11:30:10 PM   |    Article

How to use Using XPath in C#

How to use Using XPath in C#Read more..
By: amalhashim   |    On:  2/15/2010 11:30:11 PM   |    Article

How to create Extension Methods in C# 3.0

How to create own Extension Methods in C# 3.0Read more..
By: ayyanarj   |    On:  2/16/2010 3:01:22 AM   |    Article

Object Initialization in C# 3.0

Object Initialization in C# 3.0Read more..
By: ayyanarj   |    On:  2/16/2010 3:01:22 AM   |    Article

Handling Database NULL in .Net while using SqlParameter (.Net 2.0)

Handling Database NULL in .Net while using SqlParameter (.Net 2.0)Read more..
By: ayyanarj   |    On:  2/16/2010 3:01:22 AM   |    Article

How to access html control without runat server in C# code

How to access html control without runat=server in C# codeRead more..
By: praveenbattula   |    On:  2/16/2010 3:23:49 AM   |    Article

Optional Argument in C# 4.0

Optional Argument in C# 4.0Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

Lambda Expression in C#

This article will explain about Lambda expression and its usage. This article will also give differences between Lambda expression and Anonymous method. This article will talk about type inference in Lambda expression. This will also talk about delegate type conversion of lambda expression.Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

Finding multiple items in C# Generic List

Let us say we have a list of integer and we want to find all the number greater than 100.Read more..
By: Dhananjay Kumar   |    On:  10/2/2010 10:53:43 AM   |    Article

Using Lambda expression in FindAll in C#

Using Lambda expression in FindAll in C#Read more..
By: Dhananjay Kumar   |    On:  10/4/2010 10:18:36 AM   |    Article

Creating/Extending a Culture

Haven't you ever used a culture and want to extend it by changing e.g. the currency symbol? Haven't you ever want to create a custom culture for formatting purposes? Answers will vary depending on the developer and the users targeted by his application. Overtime, more and more cultures are started to be supported by the .NET Framework. However, not all cultures of the world are available in .NET. If you want to use a culture that is not available or you want to support a minority with a regioRead more..
By: Geming Leader   |    On:  9/2/2010 10:23:07 AM   |    Article

Enumerating SQL Server Instances

Learn how to enumerate currently installed SQL Server instances on this machine and on the network.Read more..
By: Geming Leader   |    On:  2/16/2010 2:59:02 AM   |    Article

Access Modifiers in C#

Access Modifiers in C#Read more..
By: gurumatrix2004   |    On:  2/16/2010 3:02:51 AM   |    Article

How to take print screen using C#

How to take print screen using C#Read more..
By: NikhilJohari   |    On:  2/16/2010 3:05:18 AM   |    Article

Calling Web Service using HttpWebRequest

Calling Web Service using HttpWebRequestRead more..
By: jarmex   |    On:  2/16/2010 12:21:40 AM   |    Article

Copy files from Source directory to Destination Directory using C#

Copy files from Source directory to Destination Directory using C#Read more..
By: Jana   |    On:  2/15/2010 11:56:44 PM   |    Article

What is Delegate in .net(Delegate,Named method,Anonymous method)

What is Delegate in .net(Delegate,Named method,Anonymous method)Read more..
By: mcapassion   |    On:  2/16/2010 12:28:53 AM   |    Article

Aspect Oriented Programming in C#.NET - Part 1

Aspect Oriented Programming in C#.NET - Part 1Read more..
By: questpond   |    On:  2/16/2010 12:02:28 AM   |    Article

How to valid email address in asp.net using Regex

How to valid email address in asp.net using RegexRead more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article

Create Windows Task Scheduler using C#

Create Windows Task Scheduler using C#Read more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article

Understanding Lambda Expression via Step By Step Debugging

Lambda Expression, anonymous function and the likes can be difficult to understand for C# programmersRead more..
By: nsoonhui   |    On:  5/7/2010 10:16:28 AM   |    Article

How to Display and Value Separately in Combobox/Listbox using C#

How to Display and Value Separately in Combobox/Listbox using C#Read more..
By: mranjankumar   |    On:  2/16/2010 3:19:50 AM   |    Article

How to show Tooltip text on Dropdown selection

How to show Tooltip text on Dropdown selectionRead more..
By: helloraj   |    On:  2/16/2010 12:59:30 AM   |    Article

How to Load Excel Sheet Names into DropDownList using C#

In this article, i will show how to load excel sheet names into dropdownlist using C#.Read more..
By: RRaveen   |    On:  12/23/2010 9:34:40 PM   |    Article

Marshaling with C# - Chapter 1: Introducing Marshaling

Marshaling with C# Pocket Reference Chapter 1: Introducing MarshalingRead more..
By: Geming Leader   |    On:  9/15/2010 8:18:29 AM   |    Article

Marshaling with C# - Chapter 2: Marshaling Simple Types

Marshaling with C# Pocket Reference Chapter 2: Marshaling Simple Types (primitives, booleans, strings, etc.)Read more..
By: Geming Leader   |    On:  9/15/2010 8:23:18 AM   |    Article

Marshaling with C# - Chapter 3: Marshaling Compound Types

Marshaling with C# Pocket Reference Chapter 3: Marshaling Compound Types (structures, unions, etc.)Read more..
By: Geming Leader   |    On:  9/15/2010 8:26:28 AM   |    Article

Folder protection for windows using C#

Folder protection for windows using C#Read more..
By: abhi2434   |    On:  2/16/2010 3:12:09 AM   |    Article

How to Create Enumeration as Bit Flags in C#

Through this article, i will show you how to create enumeration as Bit Flags in C#.Enumeration is one the important feature of C#. Enumeration allows you to name a variable to make sense for the programRead more..
By: abhi2434   |    On:  11/17/2010 10:14:35 AM   |    Article

C# 4.0 - Optional Parameters

C# 4.0 - Optional ParametersRead more..
By: amalhashim   |    On:  2/15/2010 11:30:10 PM   |    Article

C# 4.0 - Named Arguments

C# 4.0 - Named ArgumentsRead more..
By: amalhashim   |    On:  2/15/2010 11:30:10 PM   |    Article

Using C# UDPClient Send and Receive message

Using C# UDPClient Send and Receive messageRead more..
By: amalhashim   |    On:  2/15/2010 11:30:10 PM   |    Article

URL Encoding

URL EncodingRead more..
By: amalhashim   |    On:  2/15/2010 11:30:11 PM   |    Article

Caching Sql Parameters in C#.Net

Caching Sql Parameters in C#Read more..
By: ayyanarj   |    On:  2/16/2010 3:01:22 AM   |    Article

stack concept in linklist in c#

stack concept in linklist in c#Read more..
By: poly666   |    On:  2/16/2010 12:34:46 AM   |    Article

reverse display of string using stacked array in data structure in c#

reverse display of string using stacked array in data structure in c#Read more..
By: poly666   |    On:  2/16/2010 12:34:46 AM   |    Article

insertion of node at the begining and end of linklist

insertion of node at the begining and end of linklistRead more..
By: poly666   |    On:  2/16/2010 12:34:46 AM   |    Article

Queue implementation in c# through array in DataStructures

Queue implementation in c# through array in DataStructuresRead more..
By: poly666   |    On:  2/16/2010 12:34:46 AM   |    Article

Dynamic type in c# 4.0

Dynamic type in c# 4.0Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:55 AM   |    Article

Named Argument in C# 4.0

Named Argument in C# 4.0Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:55 AM   |    Article

An Introduction to Delegate in c#

In this article, you will learn about Delegate in c#Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

Enumerators in C#

This Tutorial will explain about IEnumerator and IenumerableRead more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

Introduction of the Events in c#

This article discusses the basics of events in C# and how to take advantage of events by implementing them in your applications.Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

Extension Method in C# 3.0

This article will explain about Extension method with a complete example.Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:56 AM   |    Article

How to Find Odd numbers from a Range of Number using LINQ in C#

we have a range of number from 1 to 20 and we want to find odd among them using LINQ .Read more..
By: Dhananjay Kumar   |    On:  10/12/2010 8:29:46 AM   |    Article

Back to Basic # Static class in c#

Back to Basic # Static class in c#Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:57 AM   |    Article

Working with Dynamic Object in c# 4.0 Part 1

This article will give a basic introduction of Dynamic Object in c# 4.0Read more..
By: Dhananjay Kumar   |    On:  4/12/2010 9:14:29 AM   |    Article

Collection initializer in C# 3.0

In this article, i have demonstrate how to create collection initializer in C# 3.0Read more..
By: Dhananjay Kumar   |    On:  9/5/2010 8:55:23 AM   |    Article

Anonymous types in C# 3.0

Anonymous types are new feature being added in C# 3.0.Read more..
By: Dhananjay Kumar   |    On:  9/6/2010 10:40:14 AM   |    Article

Delegate to Lambda Expression in C# 4.0

I am going to give a story type discussion from Delegate to Lambda expression.Read more..
By: Dhananjay Kumar   |    On:  9/9/2010 8:21:11 AM   |    Article

How to Sort a Generic List in C#

This article will give code snippet on how to sort a generic list in C#Read more..
By: Dhananjay Kumar   |    On:  9/21/2010 9:30:27 AM   |    Article

Working with Strings with Combining Characters

In some languages, like Arabic and Hebrew, you combine some characters with combining characters based on the pronunciation of the word. Combining characters are characters (like diacritics, etc.) that are combined with base characters to change the pronunciation of the word (sometimes called vocalization.)Read more..
By: Geming Leader   |    On:  9/2/2010 10:13:39 AM   |    Article

Marshaling Unions in .NET

If this is your first time you hear about unions or you need to know more about them, please refer to our article "A short speech about Unions" first. You can marshal a union the same way you marshal structures. However, because of the way that unions laid-out into memory, you will need to explicitly set variable positions inside the type.Read more..
By: Geming Leader   |    On:  9/2/2010 12:01:50 PM   |    Article

What is Inheritance in C#

What is Inheritance in C#Read more..
By: gurumatrix2004   |    On:  2/16/2010 3:02:51 AM   |    Article

What is an object in C#

What is an object in C#Read more..
By: gurumatrix2004   |    On:  2/16/2010 3:02:51 AM   |    Article

How implement Polymorphism in C#

How implement Polymorphism in C#Read more..
By: gurumatrix2004   |    On:  2/16/2010 3:02:51 AM   |    Article

Create Multiplayer using Csharp

Create Multiplayer using CsharpRead more..
By: NikhilJohari   |    On:  2/16/2010 3:05:18 AM   |    Article

Movable form with designed Header using c#

Movable form with designed Header using c#Read more..
By: NikhilJohari   |    On:  2/16/2010 3:05:18 AM   |    Article

Retrive Mp3 ID3 tag Information

Retrive Mp3 ID3 tag InformationRead more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Compile Class using Command Line C# Compiler

Many users know how to create code library using Visual Studio IDE in GUI environment for making code reusable code so that multiple application can use that dll.Read more..
By: kirtan007   |    On:  7/13/2010 9:19:10 AM   |    Article

How to Use IComparable Interfaces in C#

This article is targeted for the people who don't know how to use IComparable Interfaces .Read more..
By: kirtan007   |    On:  9/11/2010 11:12:21 AM   |    Article

Create Zip file using .net

Create Zip file using .netRead more..
By: Kirti.M.Darji   |    On:  2/15/2010 10:14:12 PM   |    Article

how to use the Bing API in C#.NET

Short article which explains how to use the Bing API in C#.NET.Read more..
By: ninethsense   |    On:  6/19/2010 9:41:56 PM   |    Article

Timespan to caluculate the total of hours worked based on start and end times in CLR using C#

using Timespan to caluculate the total of hours worked based on start and end times in CLR using C#Read more..
By: oudinia   |    On:  2/16/2010 3:10:41 AM   |    Article

Explicit and Implicit Casting of Object and Use of 'is','as' keywords in C#

In this article I am going to discuss about the casting of object form one type to another type and what the thing require to keep in mind when casting object.Read more..
By: pranay rana   |    On:  1/11/2011 7:56:16 PM   |    Article

Best Practices of Initialization Objects and Collections in C#

In this article, i will share with you, Best Practices of Initialization Objects and Collections in C# for different versions of .NETRead more..
By: pranay rana   |    On:  2/25/2011 8:14:53 AM   |    Article

C# Code Reviews using StyleCop – Detailed Article

C# Code Reviews using StyleCop – Detailed ArticleRead more..
By: questpond   |    On:  2/16/2010 12:02:28 AM   |    Article

Compiling the first F# program using interactive mode

Compiling the first F# program using interactive modeRead more..
By: questpond   |    On:  2/16/2010 12:02:28 AM   |    Article

.NET Best Practice No: 3:- Using performance counters to gather performance data

.NET Best Practice No: 3:- Using performance counters to gather performance dataRead more..
By: questpond   |    On:  2/16/2010 12:02:29 AM   |    Article

Access Assembly file and get product informations

Access Assembly file and get product informationsRead more..
By: RRaveen   |    On:  2/15/2010 10:59:46 PM   |    Article

CLS Attribute in DotNet

CLS Attribute in DotNetRead more..
By: RRaveen   |    On:  2/15/2010 10:59:46 PM   |    Article

Download file from FTP server using C#

Download file from FTP server using C#Read more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article

Get the file Information using C#

Get the file Information using C#Read more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article

Import records to Database using SqlBulkCopy with Expression Column in C#

Import records to Database using SqlBulkCopy with Expression Column in C#Read more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article

How to declare an array of Custom Type in C#

In this article we will see that how we can create arrays of custom types. We can achieve it by using custom types.Read more..
By: Ravish Kumar Sindhwani   |    On:  6/14/2010 8:14:32 AM   |    Article

Create Data Access layer class with C#

This class contains all the method which can be used to get data from database (using Stored Procedures) and also to insert and update data in database.Read more..
By: Sanjay Verma   |    On:  11/12/2010 11:19:40 AM   |    Article

Collections classes in .Net – Part 1

Collections classes in .Net – Part 1Read more..
By: skumaar_mca   |    On:  2/16/2010 3:06:03 AM   |    Article

C# 3.0 New Features – Part 1

C# 3.0 New Features – Part 1Read more..
By: skumaar_mca   |    On:  2/16/2010 3:06:03 AM   |    Article

Accessing Network Drives using UNC Path in C#

Code gain is another avenue opened up for me to post my articles. I am happy to do this! Though this is my first article I am trying to do the best!Read more..
By: Srikanth Chganti   |    On:  5/31/2010 10:17:26 AM   |    Article

Understanding C# Constructors

Constructor is a special kind of method which have name same as that of class they belong and gets executed when its (class) object is created.In other words a constructor is a class default method that gets automatically executed whenever class’s object is created or whenever class is initialized.Read more..
By: Vishal Nayan   |    On:  4/28/2011 8:35:22 AM   |    Article

How to pass the value when call exe in another application in .NET

How to pass the value when call exe in another application in .NETRead more..
By: youngmurukan   |    On:  2/15/2010 9:42:09 PM   |    Article

Simple Arrow Animation using GDI Plus in C#

Simple Arrow Animation using GDI Plus in C#Read more..
By: ninethsense   |    On:  2/16/2010 12:55:57 AM   |    Article

How to create custom Button using .NET

How to create custom Button using .NETRead more..
By: mranjankumar   |    On:  2/16/2010 3:19:50 AM   |    Article

Accessing Microsoft Office InterOP Objects using C# 4.0

Accessing Microsoft Office InterOP Objects using C# 4.0Read more..
By: Dhananjay Kumar   |    On:  2/16/2010 12:48:55 AM   |    Article

Changing Display Settings Programmatically

Previously, we have talked about how to change screen resolution and color system via DirectX. Today, we are talking about how to change all display settings -not the resolution and color system only- via API. We will change screen resolution (bounds,) color system (bit count,) rotation (orientation,) and refresh rate (frequency) via API with C# and the .NET Framework.Read more..
By: Geming Leader   |    On:  9/2/2010 11:14:42 AM   |    Article

Programmatically Swapping Mouse Buttons

Swapping mouse buttons means swapping the two buttons, making the right button acts like the left one and vice versa. This is done -for normal users of course- using the Mouse properties dialog in the control panel. See the next figure.Read more..
By: Geming Leader   |    On:  9/2/2010 10:44:28 AM   |    Article

Clearing the Console Screen using API

In addition to clearing the console screen, this lesson teaches you some about PInvoking, marshaling, and memory management. Also you will learn additional techniques like clearing a specific portion of the screen, and changing the cursor position. Moreover, you will dig into IL and see how System.Console.Clear() method do it. More than that you will learn how to reverse-engineer a .NET assembly and discover the code inside. In addition, the example shows how to perform I/O operations on consRead more..
By: Geming Leader   |    On:  9/2/2010 10:57:57 AM   |    Article

Creating a Stack-Based Array

By default, arrays are stored in the managed heap with all of the overhead involved and that's because arrays simply are instances of type System.Array that inherits from System.Object. Storing an object into heap means that it will not be removed from the memory until a garbage collection (whether automatic or by calling System.GC.Collect()) occurs. Also, storing it into the heap means suffering from low-performance and the overhead (for the CLR) of storing and retrieving it into and from the hRead more..
By: Geming Leader   |    On:  9/2/2010 11:04:17 AM   |    Article

Programmatically Turning on the Screen Saver

This lesson focuses on how to programmatically turn on the screen saver.Read more..
By: Geming Leader   |    On:  9/2/2010 11:07:54 AM   |    Article

Moving a Form without the Title Bar

Today, we are talking about how to move a form without its title bar. You might have noticed that some applications with fancy UIs do not allow the user to move the window from its title bar. Honestly, some hide the overall title bar from the user. An example of these applications is Microsoft Windows Media Player -when in skin mode,- and Microsoft Windows Live Messenger. Both applications allow you to drag their windows using the client area not the title bar. In this lesson, you will leaRead more..
By: Geming Leader   |    On:  9/2/2010 11:17:26 AM   |    Article

Creating a Sound Recorder in C and C#

This writing will focus on how you can record sound from an input device and how you can play sound files using MCI (Media Control Interface) in C and C#. This writing does not involve a discussion or even an introduction to MCI. Instead, it provides technical discussion of what we will need to use to record and to play sound files. If you need an introduction to MCI refer to the MSDN documentation. We will begin by a discussion to types and functions required to accomplish our tasks. ThenRead more..
By: Geming Leader   |    On:  9/2/2010 3:01:25 PM   |    Article

.NET Interoperability at a Glance 1 – Introduction

In this article and the few following it, we’ll try to take a tour in Interoperability in .NET Framework. In this lesson, we’ll start by an introduction to the concept of Interoperability. In the next few lessons, we’ll have a look at Interoperability and how it fits into the .NET Framework and other technologies. Since Interoperability is a very huge topic and cannot be covered in just a few articles, we’ll concentrate on Interoperability in .NET Framework (not any other technologies) andRead more..
By: Geming Leader   |    On:  12/26/2010 3:54:49 PM   |    Article

.NET Interoperability at a Glance 2 – Managed Code Interoperation

In the previous article, you learn what interoperability is and how it relates to the .NET Framework. In this article, we’re going to talk about the first form of interoperability, the Managed Code Interop. In the next article, we’ll talk about the other forms.Read more..
By: Geming Leader   |    On:  12/28/2010 10:52:58 AM   |    Article

.NET Interoperability at a Glance 3 – Unmanaged Code Interoperation

This is the last article in this series, it talks about unmanaged code interoperation; that’s, interop between .NET code and other code from other technologies (like Windows API, native libraries, COM, ActiveX, etc.) Be prepared!Read more..
By: Geming Leader   |    On:  1/5/2011 1:38:08 PM   |    Article

Build Marquee Control for Windows Form with Full Designer Support using C#

Build Marquee Control for Windows Form with Full Designer Support using C#Read more..
By: mranjankumar   |    On:  2/16/2010 3:19:50 AM   |    Article

How to use Parallel for loop in C# 4.0

Now days we are getting our computer equipped with more and more power even now we are getting quad core processor is also at lower price. Since we have multicore processors are now so we can take advantages of multicore processor with parallel execution in C# 4.0.Read more..
By: jalpesh   |    On:  8/14/2011 6:13:50 AM   |    Article

Automating Facebook Login using WebBrowser Control in C#

Automating Facebook Login using WebBrowser Control in C#Read more..
By: amalhashim   |    On:  9/30/2010 10:16:59 AM   |    Article

Source Code Analysis for C# - StyleCop

Source Code Analysis for C# - StyleCopRead more..
By: ayyanarj   |    On:  2/16/2010 3:01:22 AM   |    Article

Shut Down, Restart, Log Off and Forced Log off System using c#

Shut Down, Restart, Log Off and Forced Log off System using c#Read more..
By: Dhananjay Kumar   |    On:  6/3/2010 8:46:39 AM   |    Article

How to Measure Execution Time of Code in C#

This article demonstrates how you can find out how much time your code is taking in execution using C#.Read more..
By: kirtan007   |    On:  7/27/2010 10:38:36 AM   |    Article

How to create Task Lister in C#

An article about builing a task tracker software.Read more..
By: ninethsense   |    On:  6/14/2010 10:19:07 AM   |    Article

Adding a System tray Icon using C#

Adding a System tray Icon using C#Read more..
By: amalhashim   |    On:  2/15/2010 11:30:10 PM   |    Article

Programming Microsoft Agent in Windows Forms

Microsoft Agent is an unprecedented technology to create innovative, new conversational interfaces for applications and Web pages. It provides powerful animation capability, interactivity, and versatility, with incredible ease of development. Microsoft Agent is a technology that provides a foundation for more natural ways for people to communicate with their computers. It is a set of software services that enable developers to incorporate interactive animated characters into their applicationRead more..
By: Geming Leader   |    On:  9/2/2010 11:02:20 AM   |    Article

Windows Vista File and Registry Virtualization

Enabling UAC (User Access Control) feature in Windows Vista, Administrator users in Windows Vista, by default, don't have administrative privileges. Every Windows process has two security tokens associated with it, one with normal user privileges and one with admin privileges. With applications that require administrative privileges, the user can elevate the application to run with Administrator rights. And that process called Elevation.Read more..
By: Geming Leader   |    On:  9/2/2010 10:39:17 AM   |    Article

Creating a Simple Sheet Designer in C#

Today, we are going to create a simple application, actually a simple sheet designing tool. This tool gives the user the flexibility to design his sheets, reports, bills, invoices, and receipts (whatever.)Read more..
By: Geming Leader   |    On:  9/2/2010 3:09:54 PM   |    Article

Disable close button in windows forms using C#

Disable close button in windows forms using C#Read more..
By: vinothnat   |    On:  2/15/2010 10:34:37 PM   |    Article

Simple Collapse Panel in windows forms

Simple Collapse Panel in windows formsRead more..
By: vinothnat   |    On:  2/15/2010 10:34:37 PM   |    Article

Multiple Colored texts in RichTextBox using C#

Multiple Colored texts in RichTextBox using C#Read more..
By: vinothnat   |    On:  2/15/2010 10:34:38 PM   |    Article

Barcode Generation using C#

Barcode Generation using C#Read more..
By: vinothnat   |    On:  2/15/2010 10:34:38 PM   |    Article

Scrollbar in down side of textbox.

Scrollbar in down side of textbox.Read more..
By: vinothnat   |    On:  2/15/2010 10:34:38 PM   |    Article

Create GUI C# Application Without Opening Visual Studio IDE

Create GUI C# Application Without Opening Visual Studio IDERead more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Start Audio file With Specific Position

Start Audio file With Specific PositionRead more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Sliding Effect in Windows Form Application in C#

Article will teach you how to achieve sliding effect in windows formRead more..
By: kirtan007   |    On:  6/22/2010 8:58:49 AM   |    Article

Display directory structure in TreeView Just In Time in C#

In this article to show you how to display directory structure in TreeView Just in Time as Windows Explorer does.Read more..
By: kirtan007   |    On:  7/24/2010 10:45:47 AM   |    Article

How to prevent multiple instances of child form in MDI windows form application in .NET

This article shows you how to prevent multiple instances of child form in MDI windows Form application.Read more..
By: kirtan007   |    On:  8/5/2010 11:20:17 AM   |    Article

Handle Buttons Click Event in DatagridView

Handle Buttons Click Event in DatagridViewRead more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Two Color Shadded Background in Form C#

Two Color Shadded Background in Form C#Read more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Animate Windows Form using C#

Animate Windows Form using C#Read more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Keep Watch on All The File Activity in All Drives / File Monitoring Program using C#

Keep Watch on All The File Activity in All Drives / File Monitoring Program using C#Read more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Download File With Progressbar using C#.

Download File With Progressbar using C#.Read more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

How to Display Processor Usage of Dual Core Processors

How to Display Processor Usage of Dual Core ProcessorsRead more..
By: kirtan007   |    On:  2/16/2010 12:22:48 AM   |    Article

Themed Vista Style navigable Month Calander control with full Keyboard and Designer support

Themed Vista Style navigable Month Calendar control with full Keyboard and Designer supportRead more..
By: mranjankumar   |    On:  2/16/2010 3:19:50 AM   |    Article

Programmatically taking screenshot using .NET

Programmatically taking screenshot using .NETRead more..
By: shanaj   |    On:  2/16/2010 3:16:21 AM   |    Article

Search a types of file within the Directory with recursive in C#

Search a types of file within the Directory with recursive in C#Read more..
By: youngmurukan   |    On:  2/15/2010 9:42:15 PM   |    Article

Retrieving Motherboard Serial Number using WMI

A simple way to get system information is through Windows Management Instrumentation (WMI). WMI was firstly introduced part of Windows 2000. It's designed to help your system, applications, and networks.Read more..
By: Geming Leader   |    On:  9/2/2010 10:41:36 AM   |    Article

Get Laptop Battery Status using C# and WMI

Article about how to get status of laptop batteryRead more..
By: kirtan007   |    On:  8/11/2010 10:01:06 AM   |    Article

How to get MAC Address of Network Card using WMI and C#

In this article, i have demonstrate to you, how to get MAC Address of Network Cards using WMI and C#Read more..
By: kirtan007   |    On:  9/9/2010 7:21:29 AM   |    Article

How to get CD/DVD Drive capabilities using WMI and C#

This article about how to Get Different capabilities of CD_Drive like read/write using WMIRead more..
By: kirtan007   |    On:  9/9/2010 7:36:16 AM   |    Article

Windows Management Instrumentation in C# Part-01

Windows Management Instrumentation in C# Part-01Read more..
By: RRaveen   |    On:  2/15/2010 10:59:47 PM   |    Article
^ Scroll to Top