>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