
A detailed tutorial about creating an Image Viewer or Picture Viewer application in C#. This application also converts Images from one type to another.
Following are the features of this application:
- Open / Save images.
- Convert images.
- Rotate Images.
- All popular image formats are supported.
Let’s get started! Read the rest of this entry »

A class that will help you take screenshots quickly and easily.
Following are the features of this class: Read the rest of this entry »

This is a detailed tutorial about making a simple Screen Capture (Screenshot Capture) application in C#. The features are: Take screenshot, view it and save it. We will be making a simple application but if you are little bit good with C# then you can enhance it and make it much better.
Setting up the Form
For this tutorial we will need 2 buttons, a timer, SaveFileDialog and a PictureBox. Here’s the info: Read the rest of this entry »

This tutorial will show you how to draw rectangle in C# using Mouse. You can normally draw a rectangle by putting the values manually. But that doesn’t always work. Sometimes you’ll require the rectangle to be drawn automatically (without putting values manually). This tutorial will show you how to do that. Let’s begin: Read the rest of this entry »
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:
private void listBox1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
// This will make sure that a file has been dropped and not text,folders or something else
if (e.Data.GetDataPresent(DataFormats.FileDrop, false))
{
// This will allow the files to be dragged into the control
e.Effect = DragDropEffects.All;
}
}
The above code first makes sure that files are dragged and not anything else. And then allows the files to be dragged into the control.
Read the rest of this entry »