C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title / Author Replies
Views
If you go through any standard C# books you will see the constructors and so I would not get into the details of the constructors but what is more important to me is the use of static constructors which is somethine new in C# or you can say that its a copy of initiliazation block in Java. ...
5
29,429
Encryption/Decryption file, string etc using C# using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.IO; namespace BHI.Rats
12
24,782
When I started on Drag and Drop in C# I could not find much on the net and so I have decided to tackle the problem here. First follow the steps to see the working sample. 1. Create a new C sharp windows application. Rename Form1 to a suitable name. I would refer it as TestForm 2. Add a treeview...
34
19,458
Introduction The parser gives you a place to start to write an XML parser in C#. We have used the System.Xml. The code public void ParseFile(string strPath) { XmlTextReader xmlReader = new XmlTextReader(strPath); int iTab = 0;
2
75,116
Introduction Classes and structs can be restricted so that only the program or namespace they are declared in may use them. Class members can be restricted so that only derived classes can use them, or restricted so that only classes within the current namespace or program can use them. Access...
0
30,482
Windows Forms text boxes are used to get input from the user or to display text. The TextBox control is generally used for editable text, although it can also be made read-only. Text boxes can display multiple lines, wrap text to the size of the control, and add basic formatting. The TextBox...
10
290,731
Generics are the most powerful feature of C# 2.0. Generics allow you to define type-safe data structures, without committing to actual data types. This results in a significant performance boost and higher quality code, because you get to reuse data processing algorithms without duplicating...
0
10,854
The .NET Framework has built-in support for globalisation in its System.Globalization namespace. This namespace can help you build international support into your applications. If you plan your applications to include support for an international audience, the cost to develop them isn't much...
0
8,404
C# allows you to define two types of variables: value types and reference types. The value types hold actual values, while reference types hold references to values stored somewhere in memory. Also value types are allocated on the stack and are available in most programming languages. Reference...
23
95,818
Introduction I happen to edit the collections many times in the foreach loop and run into problems and then each time I got a different solution when going to Google, So first I would try to list each of the solution and then discuss them so that we all can have the best practice in the...
5
8,370
Introduction This solution describes an approach how to send email messages with or without attachments. Background The EmailProgram class is used to send email messages with or without attachments. The code
5
18,829
Introduction AdWords is Google's flagship advertising product. AdWords offers pay-per-click (PPC) advertising, and site-targeted advertising for both text and banner ads. The Google AdWords API lets developers build applications that interact directly with the AdWords platform. With these...
3
8,085
Most of the advanced .NET applications that you develop need to communicate with other applications. For instance, for downloading or uploading data to some remote server, networking is required. In order to send or receive email via SMTP or to send and receive webpages via an HTTP protocols, some...
0
938
If you program in more than one language, sometimes you want to use an phrase or expression from one language in the other, when it does not exist you have to invent it for that language. Nested functions are functions defined within functions. They can be useful for compartmentalizing behavior...
3
17,864
Introduction We use Winsock to establish connection between client and server . This is the beginning of everything in the computer of today's !!! The net is the most power tools of the programmers and you must learning to use it. In this article we will see how to create a simple chat...
13
66,452
Introduction XML, or Extensible Markup Language, is a very popular format used to store and share data. In a nutshell, XML stores information in a tree-based text format that allows both you and I as well as computers to easily read the data. I'm sure you have used XML-like languages directly or...
0
28,871
General Questions 1.Does C# support multiple-inheritance? No. But you can use Interfaces. 2.Where is a protected class-level variable available? It is available to any sub-class derived from base class 3.Are private class-level variables inherited? Yes, but they are not...
19
280,956
C# is a language that integrates useful concepts from several programming languages. C# contains advanced features of Java and provided C++’s robustness. The concept of pointer is integral in C and other low level languages. However, C# also allows you to utilize the power of pointers in your code...
0
1,050
.NET framework has everything what it takes to develop a highly customizable software application. Apart from providing thousands of built in classes in language library and common language runtime, .NET offers variety of options during code compilation. Using visual studio you can access those...
0
974
Most of the .NET functionalities are provided via managed types. These managed types are organized in hierarchical namespaces. .NET framework contains thousands of types and the number is prospering with every passing day as more and more developers are contributing towards expanding the language...
0
1,018