Modification in string using Stringbuilder class in VB.net

 
String can be modified by using stringbuilder class. We can take an example for better understanding, suppose there are two string string11 and string2:

Dim String1 As New StringBuilder("Hello")
Dim String2 As New StringBuilder()

Continue reading “Modification in string using Stringbuilder class in VB.net”

Verbatim strings in C#: How to use of @ symbol in string

A verbatim string is one that does not need to be escaped which makes it easy to write, for example, a fully qualified file path like c:\myfolder\myfile.txt. This file path string can also created as verbatim string. Verbatim strings are those who started with @ symbol. Continue reading “Verbatim strings in C#: How to use of @ symbol in string”

VSTO 2010 in C# – how to make word add-in

The common way to develop new functionality or custom functionality to outlook, word, excel is to develop COM addins. There are many different different technologies for making these types of addins such as Visual Basic 6.0, Delphi, C++ and .net etc.

Continue reading “VSTO 2010 in C# – how to make word add-in”

Decompress, Extract, Unzip file with GZipStream Class in C#

Code snippet for decompressing file with GZipStream class in C# (Apply for .net 4.0). GZipStream class is for compressing and decompressing file(s) into gzip (read about gzip format on wikipedia) format which is based on based on the DEFLATE algorithm. So data is read in on a byte-by-byte basis, so you can not perform multiple passes to determine the best method for compressing entire files or large blocks of data.

following code is for decompressing or extract a file in c# :

Continue reading “Decompress, Extract, Unzip file with GZipStream Class in C#”

Import data from excel to DataGridView in C#

In this article we will discuss that how to import data from any excel file into datagridview control in c#.
– Start a new project in your visual studio in C#.

– Add reference of Microsoft ADO Ext. 2.8 from .net COM component. We will use this library to extract all Excel Sheet from Excel file. Continue reading “Import data from excel to DataGridView in C#”