Tip Details Add a Related Tip

Rate as: Positive Negative

Hex colors in System.Drawing

In ASP.Net, the methods of System.Drawing.Color do not seem to allow the use of Hex colors which are normally used in web pages. This is annoying, but there is a work-around. To get this to work, you need to use the Color.FromARGB method and preface the color with "&H78". Like so:

someVar = Color.FromARGB(&H78336699)

will set the color to be #336699
Rating: 100% positive, 1 Vote
Categories: ASP .Net web
Added: on May 25, 2007 at 8:44 am
Added By: an anonymous user

Comments on this Tip

Add a Comment
short and sweet
BRILLIANT post!!!

Thanks
– Added by an anonymous user on May 27, 2007 at 8:18 pm
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Setting the button triggered by the enter key

Categories: programming ASP .Net web
100% positive, 0 comments
– Tip added by an anonymous user on Jun 05, 2007 at 6:09 pm

Electronic payment processing in ASP.Net web applications

Categories: programming ASP .Net web
100% positive, 1 comment - last added on Apr 30, 2007 at 1:32 pm
– Tip added by an anonymous user on Apr 25, 2007 at 12:01 pm

Adding an email attachment in .Net

Categories: programming ASP .Net web
0% positive, 0 comments
– Tip added by an anonymous user on Apr 26, 2007 at 3:49 pm

Using ASP.Net variables in your Javascript code

100% positive, 2 comments - last added on Sep 04, 2007 at 7:12 am
– Tip added by an anonymous user on May 05, 2007 at 7:00 am

Master pages in ASP.Net 2.0

Categories: programming ASP .Net
100% positive, 0 comments
– Tip added by an anonymous user on Apr 24, 2007 at 3:05 pm

Maintaining page scroll position with ASP.Net 2.0

Categories: ASP .Net programming
no ratings, 0 comments
– Tip added by an anonymous user on Jun 08, 2007 at 12:31 pm

iPhone - Saving image from Safari

Categories: iPhone Safari web images
100% positive, 0 comments
– Tip added by an anonymous user 1 day, 7 hours ago

scroll textareas on the iPhone

Categories: iPhone web iPod Touch
100% positive, 0 comments
– Tip added by an anonymous user 5 days, 1 hour ago

Free signed SSL certificates

Categories: security web SSL free
100% positive, 0 comments
– Tip added by an anonymous user on Aug 23, 2008 at 2:38 pm

Viewing CSS and Javascript files

100% positive, 0 comments
– Tip added by an anonymous user on Aug 20, 2008 at 7:27 am

Creating iPhone icons

100% positive, 0 comments
– Tip added by an anonymous user on Aug 11, 2008 at 8:31 am

web analytics software

Categories: web analytics tracking free
100% positive, 0 comments
– Tip added by an anonymous user on Aug 11, 2008 at 7:39 am

Random number generation

100% positive, 0 comments
– Tip added by an anonymous user on Aug 05, 2008 at 6:49 am

Optional parameters in javascript functions

100% positive, 0 comments
– Tip added by an anonymous user on Jul 30, 2008 at 10:44 am

Getting site contents on mobile devices

100% positive, 0 comments
– Tip added by an anonymous user on Jul 25, 2008 at 6:46 am

Tracking hurricanes

Categories: fun web weather maps
no ratings, 0 comments
– Tip added by an anonymous user 2 days, 23 hours ago

Create your own fonts

Categories: design types web
no ratings, 0 comments
– Tip added by an anonymous user 4 days, 4 hours ago

attaching events to nodes in Javascript

no ratings, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 11:23 am

animating elements with jQuery

no ratings, 0 comments
– Tip added by an anonymous user on Aug 04, 2008 at 1:46 pm

Checking trace routes from outside your network

no ratings, 0 comments
– Tip added by an anonymous user on Jul 30, 2008 at 1:41 pm