Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefaultValue for Tab Control ItemSize
Message
 
À
12/10/2005 06:53:52
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01057791
Message ID:
01058252
Vues:
22
Thank you both for your help...

ATB

Chris

>Viv,
>
>To be honest I guessed :-) however of the top of my head - the TypeConverter has methods to check for the types its supports conversion from and to ie. CanConvertFrom(typeof(string)) or CanConvertTo(typeof(string)).
>
>I suppose you could do something like the following:-
>
>Size test = new Size();
>MessageBox.Show(TypeDescriptor.GetConverter(test).ConvertToString(test));
>
>Which should display the string to use, or you could do something like this:-
>
>foreach(Color c in TypeDescriptor.GetConverter(typeof(Color)).GetStandardValues())
>{
>   MessageBox.Show(TypeDescriptor.GetConverter(c).ConvertToString(c));
>}
>
>Regards
>Neil
Chris Maiden
Email
Web
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform