We need an object of the class when we access the member of class. C# add a other concept for creating a class as Static. static class cannot be instantiated, there are two main features of a static class, one is no object of static class can be created and another is, Continue reading Static class in c#
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()
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.
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# :
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#