In this post we will see a simple example with listbox . Here we will see how to add values to listbox at runtime . And Multi Select Property of ListBox. And how to copy selected values of listbox to textbox. For this I am designing a form with a… Continue Reading Copy Selected Values of a MultiSelect ListBox to TextBox in C#

In this post we will see the textbox validation using KeyPress Event in Windows C# . For this i am taking two textboxes on a form one is  txt_Name and another is  txt_Mobile .  And i am taking one error provider on form. The Form designed as shown in figure… Continue Reading Textbox Validation using KeyPress Event in C#

In previous posts we have seen  connecting with sql server using ADO.NET, Simple C# program with ADO.NET . In this post we will see a sample windows application with ADO.NET . I am designing the form as shown in the image below. create a table in the database. Here we are… Continue Reading Simple Example to Start With ADO.NET in Windows C#

Example For Arithmetic Operations in C#.Net Windows In previous posts, we have seen c# program to add two numbers / integers , c# program to add two numbers / integers using function In this post we will see a simple example to start with windows c# application. Here we will perform basic… Continue Reading Simple Example to Start with C# Windows Application

In this post i am posting a simple C# console program to start with ADO.NET. This may help the beginners in understanding the insertion of data into a database from a C# program. Before going for the program create a table in sql server using the following command:

Now… Continue Reading Simple C# program with ADO.NET