Practical solutions

C# Howtos How-To Guides

Solve the problem. Keep building. Collection of C# how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Connect to an Access Database in C#We will learn how to connect to an Access database in C# in this article. How to Send Email With Attachment in C#In this article, we'll learn how to send an email with attachment in C#. How to Convert String to Double in C#This tutorial demonstrates how to convert a string in C# to a double type. How to Stop a Thread in C#In this article, I'll explain how to start and stop a thread in C#. How to Split a String on Newline in C#We'll look at how to split a string on newline in C# in this tutorial. How to Compare Arrays in C#In this article, we'll learn how to compare and check whether two or more arrays are equal in C#. How to Simulate a Key Press in C#In this article, We'll learn an easy and simple way to simulate a keypress in C#. How to Initialize a Byte Array in C#In this article, we'll learn how to initialize a byte array to a specific length in C#. How to Inherit From Multiple Classes in C#In this article, we'll learn, with the help of implementation, how to inherit from multiple classes with the help of interfaces in C#. How to Get Double Value by Dividing Two Integers in C#This tutorial introduces the division of two integers. In C# programming, the quotient depends on the type of operands. In this article, our major concern of discussion is all about the division of two integers and getting results as a double data type. How to Crop an Image in C#In this tutorial, learn the different methods of drawing and editing an image in C# with examples. Use the Graphics.DrawImage() method. How to Write to the Event Log Application in C#In this article, we will learn about writing to the event log application. There is no need to create a new Event Source repeatedly to write. We can write EventLog to an existing event source, but the name of Eventlog source should be the same as the EventLog name. How to Sort List in Descending Order in C#In this article, we'll learn how to sort a list in descending order in C#. How to Convert List Into Dictionary in C#This tutorial demonstrates how to list to dictionary in C#. How to Compile C# in Command LineThis tutorial demonstrates how to compile C# in command line. How to Implement a Property in an Interface in C#This article teaches how to implement a property in an interface in C#. How to Open Folder Dialog in C#This tutorial demonstrates how to open a folder dialog in C#. How to Comment a Block of Text in C#This tutorial teaches you how to comment a block of text or code in C#. How to Query User Information From Active Directory in C#This tutorial teaches how the user can query information from Active Directory in C#. How to Get the Current Method Name in C#In this article, we'll learn how to get the current method name that is being executed in C#. How to Get Computer Name in C#This tutorial teaches many ways you can get the computer name in C#. How to Capture Desktop and Active Window Screenshot in C#This tutorial shows how to capture desktop and active window screenshot in C#. How to Include a Class Into Another Class in C#This tutorial teaches how to include a class in another class in C#. How to Create a SOAP Service in C#In this article, we'll learn what SOAP client is and how to create a SOAP service in C#.