Wednesday, October 30, 2013

Copy file sample in visual basic

Copy file sample in visual basic

FileCopy is the simplest way to copy a file. Use this sample or part of the example to make a efficient file copy tool.
Here is how it works:

        'calling the FileCopy method, very simple
        FileCopy(Source, Destination)


Wednesday, October 23, 2013

Importing text file delimited by separator in VB

Importing text file delimited by separator in VB

Here are 2 examples on how to get a text value with separators. The first example show you how to split a text line based on a character: space, tab, coma and so on. The second sample use delimiters with more that one char.
These samples are perfect if you want to make a text files with keys and values. I offend use this to make options files, parameters files, customizations files, and any types of custom files.
You could improve the sample if you have multiples arguments or columns. You could add some encoding detection and delete all the MsgBox inside the sample.
I hope you find this sample useful. If you want to download the project sample, you could click on the link: SampleTextwithSeperator

Sunday, October 6, 2013

DatagridView Tutorial with DataGridViewCheckBoxColumn

DatagridView Tutorial with DataGridViewCheckBoxColumn

The best way to set a Yes No entry inside a DataGridView is the use of a DataGridViewCheckBoxColumn. The user could activate or disable a value by checking it.