Screen Capture Class For C#

Posted on September 18th, 2009 in C#, Tutorials | 2 Comments »

ScreenCapture

A class that will help you take screenshots quickly and easily.

Following are the features of this class: Read the rest of this entry »

How to remove selection rectangle using CSS

Posted on September 13th, 2009 in HTML & CSS | 4 Comments »

recty

Have you ever noticed that when you click a link (in Firefox,IE etc) a dotted rectangle appears around it? (see the image above)

I don’t have a problem with it. But if you find it boring and want to get rid of it. Then I’ve the best solution for you. You can get rid of it with one line of code.

All you have to do is to insert this into your CSS:

* { outline: none; }

And those rectangles (or outlines) will never appear again.

Screen Capture Application using C#

Posted on September 11th, 2009 in C#, Tutorials | 8 Comments »

Screen Capture Application

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 »

Draw a Rectangle in C# using Mouse

Posted on September 7th, 2009 in C#, Tutorials | 11 Comments »

Draw a Rectange in C# using Mouse

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 »

Human is just like digital machines!

Posted on September 6th, 2009 in Uncategorized | No Comments »

Have you ever thought that human resembles most of the digital machines? OR the digital machines resembles human?

Oh and yeah! The title of this post is wrong. Actually, its “Digital machines are just like human!”. I put that (wrong) one to attract people :p.

Human is just like a group of digital machines. See this:

Human digital machine

The human eyes function much like a camera. Both has lens,focus,blur etc. They are not exactly the same but they sure resemble each other. Read the rest of this entry »

Drag and Drop using C#

Posted on September 3rd, 2009 in C#, Tutorials | 6 Comments »

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 »

Portfolio!

Posted on January 26th, 2009 in Uncategorized | 3 Comments »

Ok another update. My portfolio is up now. Its not fully up yet, because the Contact & Get a quote page aren’t working. I’ll get them working soon.

And… Most of the stuff isn’t added. Specailly PSD 2 XHTML & Banner designs. I will add them soon.

New Design!

Posted on January 25th, 2009 in Personal | 1 Comment »

Finally! The new design is up. I designed / coded this myself.

I love blue and simplicity. And yeah! Web 2.0′ish too.