Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dynamically build & execute program statement
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00892166
Message ID:
00892241
Views:
18
This message has been marked as the solution to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform