Code Comments
Programming Forum and web based access to our favorite programming groups.If I use UserControl.Controls to load the controls on a form into an array, is there a way of determining the type of control based on any of the information stored in the array? I want to look for all the date picker controls in the array and make changes to their values. Is this possible, even if I don’t know the names of the controls? Thanks Emma
Post Follow-up to this message"Emma" <Emma@discussions.microsoft.com> wrote in message news:A1B4940C-A761-4765-8E22-CCC19F38C340@microsoft.com... > If I use UserControl.Controls to load the controls on a form into an > array, > is there a way of determining the type of control based on any of the > information stored in the array? I want to look for all the date picker > controls in the array and make changes to their values. Is this possible, > even if I don't know the names of the controls? [Air code] Dim c As Control For Each c In UserControl.Controls Debug.Print TypeName(c) Next
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.