Try with something like this:
System.Drawing.Color bc;
if (whatever)
bc = System.Drawing.Color.White;
else
bc = System.Drawing.Color.Gray;
comboBox1.BackColor = bc;
>Greetings,
>
>Im probably thinking too VFP here. Could not really find an example of how to do this, made several attempts, this being the latest:
>
>string bc;
>if (whatever)
> bc = "System.Drawing.Color.White";
>else
> bc = "System.Drawing.Color.Gray";
>comboBox1.BackColor = (bc);
>
>
>Many thanks,
>
>Todd
Hector Correa