Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping objects

Status
Not open for further replies.

KerryL

Technical User
May 7, 2001
545
US
I want to make 6-8 objects on my form become visible or invisible all at the same time.

Is there a way I can simply group them into a unit and apply the visible.true code to the group instead of writing a separate line of code for each object?

I thought there was a grouping option, so I highlighted all of the objects and right-clicked, but didn't see anything like that.

Is it possible to set properties for a group of items?

Thanks in advance,
kerry
 
You can put them inside of an option group control and make that visible or invisible.
 
I was able to group them together and set the visible property to "no."

Now what I'd like to do is to set the visible property (for the entire group) to True in the AfterUpdate event of a combo box. Can I do that?

In the AfterUpdate event of the cbo, can I add a line like this:

Me.GroupName.Visible = True

 
Kerryl

Did you ever find a solution for this. I was unable to figure out the group name.

 
No, I never did figure out how to create a group and apply a characteristic to it all at once.
 
Did you put them in an option group control? If so, you can set it's visible property to true or false from the combo box.
 
You could try using the .Tag property of the controls, and loop, see faq702-5010, section 3.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top