Convert color to hex using C#

Posted on December 29th, 2009 in C#, Tutorials | 2 Comments »

So you want convert a .NET color to hex or a hex color to .NET color. Well, its very easy to do this. We won’t have to write lots of code or a special class for it. Thanks to ColorTranslator class. We can convert between these with only 1 line of code. Here’s how its done:

To convert a Hex color to .NET color use this code:

Color color = ColorTranslator.FromHtml("#000000");

For converting a .NET color to Hex color, use thise code:

Color color = Color.FromArgb(0, 100, 50, 100);

// Get the hex color
string HexColor = ColorTranslator.ToHtml(color);
 

That was simple & easy. If you have any questions don’t hesitate to leave a comment.

Thanks

Sleeping Geek

Posted on November 3rd, 2009 in Funny Stuff | 2 Comments »

13453_540.jpg

This is how a geek sleeps at night :D .

Faster Facebook

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

fb

Tired of slow facebook and all the heavy-ajax sidebars/interface in Facebook? Want Facebook to be faster? Here’s the solution:

http://lite.facebook.com

Facebook Lite is the clutter-free & faster version of Facebook.

Enjoy :)

Even Microsoft is sick of IE

Posted on October 22nd, 2009 in Funny Stuff, HTML & CSS | 1 Comment »

I am currently using Dialup. Sometimes when a page is loading and there’s some problem with the connection then the unloaded code shows up as text.

Today I was viewing Microsoft’s website and this is what I saw (after a connection problem):

Internet Explorer sucks

LOL. Even Microsoft is sick of Internet Explorer.

Capturist – Screenshot Manager

Posted on October 6th, 2009 in Reviews | 3 Comments »

Capturist is a simple and handy tool for managing screenshots. Instead of describing its every feature in text, I think it’ll be good to see it in action.

This video shows all the features Capturist offers:

The main features that Captuirst offers are:

  • Take screenshots of the whole screen, a particular window, or of some area on the screen.
  • Upload to imageshack with one click!
  • Save screenshots with high quality in all the popular image formats (Jpeg, Gif, Png etc).
  • Fast, easy to use and very light (only 500kb)

What are you waiting for? Get your copy of Capturst for only $9.99 now!
Visit: www.capturist.com

Image Viewer application using C#

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

image-viewer

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 »

The World’s Bravest Mouse

Posted on September 24th, 2009 in Funny Stuff | 3 Comments »

http://www.sonnyradio.com/mouse2.jpg

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 »