C# Programming Tutorials

C Sharp Programming Tutorials And Articles
  Title Reverse Sort Order / Author Replies
Views
One of the most important modules of a software application is the module that implements time and date management functionality. Time and dates are an integral part of any application be it a desktop based application, a web based application or a mobile application. Consider a scenario, where you...
0
1,740
Often times, applications need to perform multiple tasks at a time. I always share Microsoft’s word processor’s example. While you type in the word processor, the application lets you type and in the meantime it is running spell-check and dictionary in the background to inform you whenever you type...
0
2,499
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,544
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,989
Custom Math Class that can check if a number is even or odd, calculate your rental payment, mean, percent, and percentage of a number. My custom class for some math problems, including a function to calculate payment on a house or rental agreement. The Code This class is used to calculate...
0
2,596
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
97,137
System.Windows.Forms.Timer 1. It's a forms-based timer. 2. After creating it, you can set the interval which elapses between ticks using the Interval and hook up a delegate to its Tick event. 3. Calling Start and Stop methods, start and stop of the timer. 4. It runs entirely on the...
0
14,966
Garbage collection and memory management is probably that domain of programming where .NET Framework beats most of the other application development platforms. Most of the time, garbage collection is automatically done by .NET runtime once the object gets out of scope. When a .NET object is not...
0
1,569
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,889
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
20,688
.NET framework provides wide range of namespaces that contain types, interfaces and structs which can be used to store, manage, and sort collections of data. These types include, lists, arrays, linked list and sorted as well as unsorted dictionaries. The types of collections available in .NET...
0
1,729
Introduction An event is a message sent by an object to signal the occurrence of an action. The action could be caused by user interaction, such as a mouse click, or it could be triggered by some other program logic. The object that raises the event is called the event sender. The object that...
0
6,671
Introduction Exceptions are unforeseen errors that happen in your programs. Most of the time, you can, and should, detect and handle program errors in your code. For example, validating user input, checking for null objects, and verifying the values returned from methods are what you expect, are...
3
15,693
In this article, we are going to explore a couple of fairly advanced C# concepts. We will start by explaining the concept of extension methods in C#. I will explain you with the help of examples, what basically extension methods are, how they are actually used and what its benefits are. Next, we...
0
1,309
A WPF Window is integration of multiple elements. Top level elements such as Window, layout containers such as StackPanel, DockPanel, Grid etc. and control elements such as text boxes, buttons, menu bars and tool bars etc. All the control elements in WPF derive from System.Windows.Control base...
0
1,645
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,417
When Windows developers need a unique value, they often utilize a Globally Unique Identifier (GUID). Microsoft uses the term GUID for a unique number that identifies an entity, such as a Word document. A GUID is a 128-bit integer (16 bytes) that you can use across all computers and networks...
0
9,781
LINQ (Language Integrated Query) is arguable one of the most astonishing features of the .NET framework. If you have slightest idea of database programming, you must have written SQL queries. Something like “Select * Name From Customers”. This line was actually used to get names of all the...
0
1,313
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
51,257
Introduction How to capture the errors from application and write it in a log file. We have to mention the directory path in Webconfig file. Background This code is to capture the error log in log file with all information. The code
2
12,264