Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Limit to range of colors displayed by Label control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Evan Stone - 13 Jul 2006 18:37 GMT
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
GhostInAK - 13 Jul 2006 18:50 GMT
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,
>
[quoted text clipped - 13 lines]
> ----------------------------------------
> santa rosa, ca, us
Ignacio Machin ( .NET/ C# MVP ) - 13 Jul 2006 19:27 GMT
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?

Signature

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

> Hi,
>
[quoted text clipped - 13 lines]
> ----------------------------------------
> santa rosa, ca, usa
Herfried K. Wagner [MVP] - 13 Jul 2006 23:41 GMT
"Evan Stone" <recombinantspam_n0spaam@hotmail.com> schrieb:
> 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...

Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.