Archive for WinForms

Drag And Drop Files to a C# Application

Amgad Suliman | 11/06/2009 | 1 Comments

The .NET Framework makes it easy to detect objects dragged and/or dropped into a Windows Forms application using one or more of the drag-and-drop events available. In these events you could check if the object is a file.

Filed Under: WinForms

Get the Available Network Connections Using WMI

Amgad Suliman | 30/03/2009 | 4 Comments

Windows Management Instrumentation (WMI) makes querying Windows for system and devices information easy. And this is even easier with System.Management assembly. The code listed loads the names of the network connections in a ListBox, which when clicked displays all the available properties in a ListView.

Filed Under: WinForms

Simple Networking Tasks in C#

Amgad Suliman | 27/03/2009 | 0 Comments

Developing applications in C# that access resource on the internet is easy. This post shows four useful functions: checking if the PC is connected to a network, domain name to IP address lookup, ping a host and download a file.

Filed Under: Mono 2.0, WinForms

A Registry Viewer in C#

Amgad Suliman | 24/03/2009 | 6 Comments

The Registry is a database in Windows that is available for application developers to use for storing small amounts of data. It is mostly used to save application setting like the window size and database connection string. In this series of post I will demonstrate how to create a simple registry editor in C#.

Filed Under: WinForms

Displaying an XML File in a TreeView Control

Amgad Suliman | 21/03/2009 | 1 Comments

XML’s structure is hierarchical and therefore can be displayed in a TreeView control easily. The XMLTree program displays the elements of the XML file in a TreeView control and the attributes of the selected element in a ListView control.

Filed Under: WinForms

A Wrapper Class For hostip.info’s GeoLocation Service

Amgad Suliman | 18/03/2009 | 2 Comments

GeoLocation refers to identifying a real-world geographic location of a computer, device or website visitor. There are a many websites that provide this service, some are free and some are not. A populare and free one is hostip.info. It provides country, country code, country flag, city, latitude and longitude of an IP address.

An Open Source Website Screen Capture Program

Amgad Suliman | 14/03/2009 | 3 Comments

A few weeks ago I posted Taking Thumbnails of a Website, that shows how to take a screen shot of a website using the Web Browser control. I used the code from the post to develop SiteCapture as an open source application.

Filed Under: WinForms