Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing control types
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00890743
Message ID:
00890765
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform