26/10/2012 by Nitesh

AutoComplete Textbox in Windows Form

Friends, We use AutoComplete feature in our websites many times. Wonder, how we can achieve the same in windows forms. Let us build it today. We will do it step by step as mentioned below- Open Visual Studio and create a new Windows Form Application Project and name it “AutoCompleter” Drag and Add a TextBox…

Continue Reading »

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 »

1 8 9 10