Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dynamically build & execute program statement
Message
From
05/04/2004 10:15:31
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00892166
Message ID:
00892255
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
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
Map
View

Click here to load this message in the networking platform