473,387 Members | 1,379 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,387 software developers and data experts.

Limit to range of colors displayed by Label control?

Hi,

I was just curious to know if there was a limit to the range of colors a
label control can display. For instance if I set a label control's ForeColor
to 28, 23, 15 it renders black (on my system, at least - but I'm running an
nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which should be
plenty able to render that properly).

Anyway, it occurred to me that perhaps the label had a restricted color
range, and if this is the case, which other controls might this restriction
apply to?

thanks!

evan k. stone | software engineer
----------------------------------------
santa rosa, ca, usa
Jul 13 '06 #1
3 1183
Hello Evan,

There is no restriction here. You simply chose a color that is indistinguishable
from black to the normal human eye.
RGB(28, 23, 15) = HTML Color: #1C170F. Try that in yer fav web browser..
it'll still look black.
You need to raise the brightness level.

-Boo
Hi,

I was just curious to know if there was a limit to the range of colors
a label control can display. For instance if I set a label control's
ForeColor to 28, 23, 15 it renders black (on my system, at least - but
I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit
color, which should be plenty able to render that properly).

Anyway, it occurred to me that perhaps the label had a restricted
color range, and if this is the case, which other controls might this
restriction apply to?

thanks!

evan k. stone | software engineer
----------------------------------------
santa rosa, ca, usa

Jul 13 '06 #2
Hi,

First of all it's not nice to crosspost to so many NGs , it's better to post
to just one.

There is no restriction at all. Post some code in case you do not solve your
problem
Also is this a web or a win app?
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Evan Stone" <re*********************@hotmail.comwrote in message
news:Og****************@TK2MSFTNGP03.phx.gbl...
Hi,

I was just curious to know if there was a limit to the range of colors a
label control can display. For instance if I set a label control's
ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm
running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which
should be plenty able to render that properly).

Anyway, it occurred to me that perhaps the label had a restricted color
range, and if this is the case, which other controls might this
restriction apply to?

thanks!

evan k. stone | software engineer
----------------------------------------
santa rosa, ca, usa


Jul 13 '06 #3
"Evan Stone" <re*********************@hotmail.comschrieb:
I was just curious to know if there was a limit to the range of colors a
label control can display. For instance if I set a label control's
ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm
running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which
should be plenty able to render that properly).
I am wondering how you determine that the text is rendered in black...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 13 '06 #4

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

Similar topics

9
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
9
by: subdhar | last post by:
I'm getting following error in asp.net application.I search the web and couldn't find error like this can any one help me in trouble with this error Specified argument was out of the range of...
2
by: John | last post by:
Hello I want to use the same data string (memo) to populate a "summary" asplabel. After the summary there would be a + "..." and a "see more..." link to the "complete" string contents - for the...
5
by: jcrouse | last post by:
Many of you who may respond to this are somewhat familiar with my app in process (Cor). Simply, it's a form with 30 labels that is triggered from another application, with a hotkey. The labels text...
0
by: JohnyStyles | last post by:
I have a templated user control which looks like this: ----------------------------------------------------------------- <uc:MyUserControl runat=server> <TemplateProperty> </TemplateProperty>...
4
by: Nedim | last post by:
first let me say sorry if this is in the wrong place, i'm pretty new to programming and to be honest i am a bit intimidated by these forums. now that i've got that out of the way, i was bored and...
3
by: Evan Stone | last post by:
Hi, I was just curious to know if there was a limit to the range of colors a label control can display. For instance if I set a label control's ForeColor to 28, 23, 15 it renders black (on my...
5
by: simchajoy2000 | last post by:
Hi, I need to calculate a range of colors given the beginning and ending colors in hex values (i.e. blue to red). I know there is a logic to hex numbers and there is probably a fairly simple...
6
by: shashi shekhar singh | last post by:
Respected Sir, I am facing problem when i try to deploy my website on iis 7.0 on test page. i have to display some .mht files on iframe in gridview and error looks like below, Server Error in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.