In this Programming Post, we will see an example program to get string of comma separated values from DataTable Column in C#.Net. Generally while working with DataTable, we may need to generate a comma (or any delimiter) separated string and even we may need to generate comma separated values with single… Continue Reading Get Comma (delimiter) Separated String from DataTable Column Values in C#.Net

In this post, here is the C# code to convert DataTable to Dictionary. while working with DataSet or DataTable we may need key value pair to get Value by Id approach. So you may need to convert your DataTable to key value type i.e, Dictionary. you can also use Dictionary… Continue Reading DataTable to Dictionary Conversion in C#.Net

In this post, here is the C# code to count the occurrences of a particular string in a given string. Suppose there is a case  where we may want to check whether the string contains particular substring or not. And we may want to count the occurrences of the substring,… Continue Reading C#.Net Code to Count occurrences of String in Another String

In this post, here is the c# code to count the occurrences of a particular character in a given string. Suppose there is a case  where we may want to check whether the string contains particular character or not. And we may want to count the occurrences of the character,… Continue Reading Count the occurrences of a character in a string in C#.Net

In previous posts , i have given a example for simple registration form in asp.net . And now i am extending the same example to 3-tier. As almost everyone knows what is 3-tier architecture, so here i am not going to write much about 3-tier architecture. If you are not aware… Continue Reading Registration form in Asp.Net / C#.Net winforms using 3-tier architecture

In this article we will see a example for extracting / reading / accessing the emails from MS Outlook using C#.Net. We will see a sample application, which read mail from outlook and display its contents in our application. The screenshot of sample application is shown below Before starting the coding,… Continue Reading Reading emails from MS Outlook using C#.Net

Author : Rajesh Description: In this article we will see a simple example to interchange the items between two list boxes. The screenshot of the application is shown in the image below. The C# code in the code behind file is like this using System; using System.Windows.Forms; namespace ListBox {     public partial class From_listbox : Form     {         public From_listbox()… Continue Reading Moving Items between Two List Boxes in windows C#

While working  VB.Net application(added COM DLL’s references) on 64-bit Windows7 system , i came across a runtime exception like Retrieving the COM class factory for component with CLSID {632F4591-AA62-4219-8FB6-22BCF5F60090} failed due to the following error: 80040154. How i handled this error: -> I just removed the References and added once again.… Continue Reading COM Exception, failed due to the following error: 80040154.

In this article we will see an example of sending SMS from our winforms C#.Net or VB.Net desktop Application using HTTP API  and tracking the status of SMS . Below is the screen shot of Application In this example i have used the HTTP API of www.smsonline.co.in . In order… Continue Reading Sending SMS using HTTP API in C#.Net / VB.Net Winforms Application

# Bind Data to Datagridview in C#.Net, VB.NET Windows Application  # Display/Fill/Populate Data in DataGridView in C#.Net, VB.NET Windows Application # Bind data to DataGridView in Windows Forms in C#.Net and VB.Net In this article i am going to explain about Binding Data to a DataGridView in C#.Net and VB.Net… Continue Reading Working with DataGridView in C#.Net and VB.Net windows forms application

In this post we will see the usage of font-dialog and changing the font style of textbox in our c#.net or vb.net windows application. for this i am designing the form as shown in the image below. In this example we are using a font dialog box and showing the… Continue Reading USING FONT-DIALOG AND CHANGING TEXTBOX FONT STYLE IN C#.Net and VB.Net

In this post we will see the small example of working with multiple panels in windows c# applications. We will also see how to make the panels visible or invisible, change the location of a panel control programmatically at runtime . for this, I am designing the form as shown… Continue Reading Working with Multiple Panels in C#.Net or VB.NET Windows Application

In this post we will see the sample code for validating Textbox in C#.Net winforms for indian pan card number using Regular Expression in TextBox Validating Event . In the below code we are using a errorprovider to show if the entered pan number is in wrong / invalid format.… Continue Reading TEXTBOX VALIDATION FOR INDIAN PAN CARD NUMBER USING TEXTBOX VALIDATINGEVENT