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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Give 4 controls same properties

Status
Not open for further replies.

jrig

Technical User
Sep 5, 2006
36
US
I have 4 datagridviews on a form, each sits within its own tab (tab control). I'm changing properties at run-time. All 4 have the same properties, so rather than writing the same code 4 times, is there some way to set up a loop that can handle this? TIA-

jr
 
I would put them in a collection and the for each the collection.



Christiaan Baes
Belgium

My Blog
"In a system where you can define a factor as part of a third factor, you need another layer to check the main layer in case the second layer is not the base unit." - jrbarnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top