473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

color help

hey all,
i'm in the code-behind trying to give a BackColor a color. The color I need
is in hex (#f8f8ff). Could someone please show me the syntax? I don't see
anything I can assign to under System.Drawing.Color...

thanks,
rodchar
Feb 22 '07 #1
2 923
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.com...
i'm in the code-behind trying to give a BackColor a color. The color I
need
is in hex (#f8f8ff). Could someone please show me the syntax? I don't see
anything I can assign to under System.Drawing.Color...
<WebControl>.BackColor = ColorTranslator.FromHtml("#F8F8FF");
Feb 22 '07 #2
Thank you very much for the help. rod.

"Mark Rae" wrote:
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:DB**********************************@microsof t.com...
i'm in the code-behind trying to give a BackColor a color. The color I
need
is in hex (#f8f8ff). Could someone please show me the syntax? I don't see
anything I can assign to under System.Drawing.Color...

<WebControl>.BackColor = ColorTranslator.FromHtml("#F8F8FF");
Feb 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: liglin | last post by:
The following script changes the color of text with the onmousover event. How can it be modified so it changes the text when the button is clicked? I'd want to avoid layers or CSS. Thanks,...
3
by: Keni | last post by:
How do I set the font color of the text on the actual tab of a tab page? I have tried changing the forecolor. That only changes the color for the text inside the tab, it doesn't change the color...
4
by: SimonH | last post by:
Hi everyone, If anyone can help me with this I would be really really greatful. I have a custom object that I can't change. Two of the properties (hair colour and eye colour) are of type...
19
by: Vinod | last post by:
Hi, I have got a peculiar requirement. I want to distinquish between the color codes. I have got two text fields and i will enter the color codes there. The first text field will have ...
3
by: jullag | last post by:
Hi everyone, this was originally posted to a javascript group. If indeed there is no standard, is there a way to do it SPECIFICALLY for firefox? anyone can help? thanks! j jullag wrote:
6
by: Mark | last post by:
Hello all - I'm trying to incorporate a stylesheet into an ASP.Net page but everytime I include the "LINK" code to the .css file in the HEADER location of the HTML code, the background color that...
3
by: Lespaul36 | last post by:
I want to change the color of certain columns in my listview. I know it can be done using customdraw, but I haven't found much code to help with it. Any help in vb.net would be great. TIA
18
by: roN | last post by:
Hi, I have a table with some links in it and I would like to color the whole cell when someone is moving his cursor over it, how can i do that, right now it looks like: <tr> <td height="42"...
15
by: phillip.s.powell | last post by:
<style> div div table tr td a.navbar, div div table tr td font {display: none;} </style> <div class="navigationbar" style="background-color:Black; position: absolute; left:50%; top:127px;...
4
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.