DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » DurationBarColor

DurationBarColor

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
Anonymous - 5/23/2008 4:08:30 PM
Hi,

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

...small bug in the code...

Max
Anonymous - 5/23/2008 4:16:21 PM
Rather than:
e.DurationBarColor = Color.Coral.Name;
I recommend:
e.DurationBarColor = System.Drawing.ColorTranslator.ToHtml(Color.Colar);

Dan Letecky - 5/23/2008 5:56:59 PM
Post reply