20/09/2012 by Nitesh

How to Remove a line from a text file at specific location

Quick Post – Sometimes, we need to remove a specific line from a text file. For instance, when working with .csv files we often need to delete the 1st record as it is the header of csv file and is not required. This post describes how to delete a  specific line from your file. The…

Continue Reading »

19/09/2012 by Nitesh

Solution – Cannot serialize the DataTable. DataTable name is not set

.Net Library provides a very easy way to generate the XML schema of any dataset/data table using the WriteXmlSchema(). For this, we need to execute the following code: dt.WriteXmlSchema(“sample.xsd”) Using the above code, the schema of the datatable dt will be retrieved and saved in sample.xsd file. However, sometimes using the above code throws an…

Continue Reading »

31/08/2012 by Nitesh

Combine several images to form a single image using C#

Friends, Today, I was working on a problem where I required to add up two image to form a single image. The following code does the same for you. 1. Place a button from the toolbar on your C# form. 2. Select the button and press F4. 3. Change the name to cmdCombine and text…

Continue Reading »

09/05/2012 by Nitesh

How to Change Startup Form in VB .Net Windows Application

Today, I was working on a demo VB.Net windows application and going the Visual studio way, I added a new Windows Form Application in VB.Net. It created a default Form1.vb form with start up items. I added a new form MainForm.vb and then I wanted to change the application start up form to MainForm.vb from…

Continue Reading »

1 8 9 10