Learn how to retrieve the mouse cursor coordinates not just inside the form, but also when the cursor is located outside of the form, such as on the desktop or when a different application has the focus. We use the GetCursorPos() function from the Windows API. Form-wide coordinates versus screen coordinates Using .NET Framework 1.1 […]
Creating an RSS feed reader in C#
This tutorial will show you how to create your own RSS reader using the XmlTextReader in .NET. You’ll learn how to read information about the RSS feed, retrieve its main content (the items) and output it in a ListView.
DriveStat: Listing drives and using pie charts
This tutorial shows you how to get a list of the volumes (drives) on the current system, using .NET 2.0. It also shows you how to make use of a 3D Pie Chart library and of the FillPie() method.
Converting from decimal to binary and back
This tutorial will show you how to convert from binary system (base 2) to decimal system (base 10) and back from decimal to binary. It provides a sample .NET 2.0 application which performs these conversions.
Get the IP address in a Windows application
Learn 3 different methods of retrieving the IP address of the computer in a Windows application. It shows you how to enumerate network (local) IP addresses and the (external) Internet IPs. Examples are in C# but can easily be converted to VB.NET.
Connecting to a POP3 server using C#
This tutorial will teach you how to create a C# application that connects to a POP3 server and retrieves the email messages. First there is an introduction to connecting to a POP3 server by using Telnet, then the C# sample application follows.
File monitoring using FileSystemWatcher
Learn how to create your own file and folder monitoring application in C# using the FileSystemWatcher object. A sample application will be built in .NET 2.0 which can be used to monitor files, folders or drives.
Connecting to MySQL with C# and ODBC
In this tutorial we will see how a .NET application can connect to a MySQL server and perform queries on the database. The application uses the MyODBC driver to establish an ODBC connection to the server.
Converting Graphics to HD Photo (WDP / HDP)
Learn how to convert popular graphic files such as JPEG, GIF or PNG to the new HD Photo format from Microsoft. HD Photo debuted in Windows Vista, with the file extension WDP and recently HDP.
Opening and closing the CD tray in .NET
This tutorial will teach you how to open and close the CD / DVD tray in C# by using the winmm DLL and unmanaged code calls with PInvoke.