search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DurationBarColor

Asked by Anonymous
15 years ago.
Hi,

I would like to know if it could be possible to have other colors than "red","green","yellow", etc for the DurationBarColor property.

I would like, for example, to have "#FFD294" as a color, or Color.Coral from .net library.

Is it possible ? How ?

Thanks,
Max
Comment posted by Anonymous
15 years ago.
Hi,

sorry, e.DurationBarColor = Color.Coral.Name or e.DurationBarColor = "#FFD294" work fine.

...small bug in the code...

Max
Comment posted by Dan Letecky
15 years ago.
Rather than:
e.DurationBarColor = Color.Coral.Name;
I recommend:
e.DurationBarColor = System.Drawing.ColorTranslator.ToHtml(Color.Colar);

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.