C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title / Author Replies
Views Reverse Sort Order
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
291,280
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
281,846
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
96,088
Implementing Bubble Sort in C# /* ** Simple class to sort an array in ascending order using bubble sort ** @author: Tanaz Kerawala ** @author: S Pradeep ** @date: 5/29/2007 */
9
79,116
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,222
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,845
To start with include namespaces using System.Diagnostics; // For prcesss related information using System.Runtime.InteropServices; // For DLL importing Now declare these variables private const int SW_HIDE = 0; Now declare win32 function ShowWindow
8
49,389
Introduction LinkedList is a general-purpose linked list. It supports enumerators and implements the ICollection interface.It is a true linked list with separate nodes of type LinkedListNode, so insertion and removal are O(1) operations. Lists that contain reference types perform better if...
0
48,162
Delegate.Invoke Delegate.Invoke is used to execute a delegate on the current thread. A delegate is just a reference to a function or method, and Delegate.Invoke is the mechanism to call this function or method (similar to a normal function call). Delegate.BeginInvoke Delegate.BeginInvoke...
1
44,100
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,535
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,536
In my old MFC programming days we used to track the problems using the OutputDebugString and I have written my own version of OutputDebugString which accepts multiple arguments. When I started C# and .NET I wanted to know how can I do this in C sharp as well and remember that it should be as simple...
0
29,297
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
29,007
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,953
C# is an object-oriented programming language developed by Microsoft Corporation . C# source code as well as those of other .NET languages is compiled into an intermediate byte code called Microsoft Intermediate Langauge. C# is primarily derived from the C, C++, and Java programming languages with...
11
23,288
Introduction Before designing a class, we should have a very clear understanding about constructor. In this article I will discuss definition, types and features of constructor. Definition A constructor looks like a special method having no return type and its name is same with the class...
1
22,045
A few days ago I had an interview on a c# programmer vacancy (already received a refuse letter :happy: ) On the interview I was asked to implement a QuickSort algorithm and I couldn't do that, so now I want to help you not to repeat my mistake and get the understanding of this algorithm before...
0
20,398
Introduction Commenting in any programming langauge is important part of development because it helps understanding the code better and supplements when working as a part of the large team and so C# being a langauge of the modern era has some of the best support any project needs as far as the...
3
19,920
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,672
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,980