Grouping text boxex

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 ??
 
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..
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top