Google Search Web Part

Posted by Zafar Ullah - zafarjcp@gmail.com | 11:09 PM | , , | 1 comments »

A very attractive article on Google Search by Mark Wagner's

http://blogs.crsw.com/mark/articles/1009.aspx

Converting Hexa To RGB & RGB to Hexa Decimal using C#

Posted by Zafar Ullah - zafarjcp@gmail.com | 4:04 AM | , , | 0 comments »

In order to convert Hexa to RGB and RGB to hexa , out of many here are 2 simple ways !

Hexa to RGB

string haxValue = "BDEEC8";
int argb = int.Parse(haxValue, System.Globalization.NumberStyles.HexNumber);
System.Drawing.Color c = System.Drawing.Color.FromArgb(argb);

RGB to Hexa
string rowBG = "240-250-231";
string[] rgb = rowBG.Split('-');
int R = int.Parse(rgb[0]);
int G = int.Parse(rgb[1]);
int B = int.Parse(rgb[2]);
System.Drawing.Color c = System.Drawing.Color.FromArgb(R, G, B);