Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing control types
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00890743
Message ID:
00890765
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>Hi,
>I'm trying to change the backcolor for specific control types, in the example below for all labels on the form.

You need to use "TypeOf...Is" operator. Here's what you want:
If TypeOf cntrl Is System.Windows.Forms.Label Then
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform