R
Robert Kemp
I am creating a non-visible/tray control that monitors other custom controls
for changes (among other things). One of the monitored controls is a new
textbox that adds functionality to the standard textbox, and includes a
variable that points to the monitoring tray control... it works just like
the imagelist that is attached to any control that supports imagelists, such
as a treeview or listview. Everything is working the way I would like at
this point -- Custom event handling, reading/writing properties, etc.
Now I would like to iterate through the list of controls attached to the
tray control. Using the imagelist as an example, I want to loop through a
collection of all the controls that are attached to (are using) a certain
imagelist.
I haven't found a way to do this using the tray control object. One thing
that I considered was iterating through the form's controls and checking for
the tray control property, but this seems like a slow and undesirable
solution.
Is there a better way to efficiently access the controls attached to a tray
control in the way that I am describing?
Thank you,
Robert
for changes (among other things). One of the monitored controls is a new
textbox that adds functionality to the standard textbox, and includes a
variable that points to the monitoring tray control... it works just like
the imagelist that is attached to any control that supports imagelists, such
as a treeview or listview. Everything is working the way I would like at
this point -- Custom event handling, reading/writing properties, etc.
Now I would like to iterate through the list of controls attached to the
tray control. Using the imagelist as an example, I want to loop through a
collection of all the controls that are attached to (are using) a certain
imagelist.
I haven't found a way to do this using the tray control object. One thing
that I considered was iterating through the form's controls and checking for
the tray control property, but this seems like a slow and undesirable
solution.
Is there a better way to efficiently access the controls attached to a tray
control in the way that I am describing?
Thank you,
Robert