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”
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”
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”
We know that PDF is not Microsoft technology, it is created by Adobe system and widely used for document exchange, and based on post script. .Net framework does not provide any library to handles PDF files or it is not easy to handle PDF files in .net. Continue reading “How to Show pdf file in C#”
It is very easy to understood your code to another programmer if you write it in a managed manner and follow some standards. Continue reading “Follow Coding Standards in c# and vb.net”
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#”
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#”