YOu have to set tge EpiShape status not the color. There are 3 or 4 options
The four StatusTypes are:
StatusTypes.Warning
StatusTypes.Global
StatusTypes.OK
StatusTypes.Stop
switch(status)
{
case StatusTypes.Warning:
color1 = Color.Yellow;
color2 = Color.LightYellow;
enabledTextColor = Color.Black;
break;
case StatusTypes.Global:
color1 = Color.MediumBlue;
color2 = Color.LightBlue;
enabledTextColor = Color.LightBlue;
break;
case StatusTypes.OK:
color1 = Color.Green;
color2 = Color.LightGreen;
enabledTextColor = Color.LightGreen;
break;
case StatusTypes.Stop:
color1 = Color.Red;
color2 = Color.MistyRose;
enabledTextColor = Color.AntiqueWhite;
break;
*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>
*Quis custodiet ipsos custodes?*
On Tue, Sep 25, 2012 at 11:20 AM, Tom J. Christie <
tchristie@...> wrote:
The four StatusTypes are:
StatusTypes.Warning
StatusTypes.Global
StatusTypes.OK
StatusTypes.Stop
switch(status)
{
case StatusTypes.Warning:
color1 = Color.Yellow;
color2 = Color.LightYellow;
enabledTextColor = Color.Black;
break;
case StatusTypes.Global:
color1 = Color.MediumBlue;
color2 = Color.LightBlue;
enabledTextColor = Color.LightBlue;
break;
case StatusTypes.OK:
color1 = Color.Green;
color2 = Color.LightGreen;
enabledTextColor = Color.LightGreen;
break;
case StatusTypes.Stop:
color1 = Color.Red;
color2 = Color.MistyRose;
enabledTextColor = Color.AntiqueWhite;
break;
*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>
*Quis custodiet ipsos custodes?*
On Tue, Sep 25, 2012 at 11:20 AM, Tom J. Christie <
tchristie@...> wrote:
> **[Non-text portions of this message have been removed]
>
>
> I have an EpiShape on the SO entry form that is meant to be different
> colors based upon different status.
>
> I have tried:
> Me.UDShpApproved.backcolor = system.drawing.color.yellow
> But that does not change it. It appears like there is some other setting
> overriding it or something like that. It works on some styles and not in
> others.
>
> How would you programmatically set the EpiShape color. Ideally I want
> Green, Yellow, Orange, Red and blue.
>
> Thanks,
>
> Tom
>
> [Non-text portions of this message have been removed]
>
>
>