Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to dynamically build & execute program statement
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00892166
Message ID:
00892241
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform