Todd,
Try
bc = "White";
comboBox1.BackColor = System.Drawing.Color.FromName(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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only