Grouping text boxex

P

Pietro

Hi all,
I have many txtboxes on my form,i want to apply the same event on all of
them at once instead of on each one.
I mean ,is there a way to group all these txt boxes under one name to deal
with them as if they were only one thing ??
 
T

TonyT

What is the event you want to trigger simultaneously?

You can loop through the controls on a form 1 by 1 and code actions from
there, but more information would be helpful.

TonyT..
 
M

Marshall Barton

Pietro said:
I have many txtboxes on my form,i want to apply the same event on all of
them at once instead of on each one.
I mean ,is there a way to group all these txt boxes under one name to deal
with them as if they were only one thing ??


No, there is no capability for that. However, you can write
a single **function** for the event preocedure and then set
the event **property** to =MyFunction().

I use this feature extensively to provide special
highlighting to the control with the focus. One function
for the Enter event and another for the Exit event. These
functions use Me.ActiveControl to make them independent of
the name of the control they are manipulating.
 
Top