C#.Net upload Datas from CSV file into DataTable

You can not read the CSV file using the Split() function because the CSV itself comma separated value. If you have a CSV file from which you want to upload the data use below given code. First it reads the data from CSV file into C# Data Table. Form the data table you can load the data into databas

[ read more ]

String Format in C# – Add zeroes before number

In dot net we can format the numbers in easy way. We can use the static method (String.Format) or instance method (int.Tostring). Please find the below example to formate the numbers with spaces or zeroes . Add zeroes before number To add zeroes before a number, use colon separator ":" and write

[ read more ]

Dynamically create TextBoxes with C# on Windows Form

This article demonstrates how to dynamically create TextBoxes, CheckBox control with C# on Windows Form. the below codes dynamically creates TextBox and CheckBox controls, sets their IDs and positions, and then binds them to the Form panel. Method 1 private void Method1() { for(int i = 0;

[ read more ]