Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to dynamically build & execute program statement
Message
De
05/04/2004 10:15:31
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00892166
Message ID:
00892255
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform