Screen Capture Application using C#

This is a detailed tutorial about making a simple screen capture application in C#. You will be learning how to take a screenshot, view it and save it.

(more…)

Read More

Drag and Drop using C#

I was working on an App and needed Drag & Drop support for it. I thought it’ll be complicated but its very easy. Here’s how its done:

For this tutorial I’ll be using a listBox. You can use any control but make sure you set the “AllowDrop” to “true“.

Checking what has been dragged

Select the listBox and add the DragEnter event.

Add this code:

The above code first makes sure that files are dragged and not text, folders etc; and then allows the files to be dragged into the control.

(more…)

Read More