I'm trying to access controls in two containers...I could do it by doing 2 foreach statement like
[code]
foreach(Controls in Panel1.Controls)
{
2 Replies - 164 Views - Last Post: 07 August 2012 - 07:17 AM
#1
finding controls in two containers using 1 foreach?
Posted 06 August 2012 - 11:17 PM
Replies To: finding controls in two containers using 1 foreach?
#2
Re: finding controls in two containers using 1 foreach?
Posted 07 August 2012 - 06:50 AM
You need to explain more of what you are doing and what you want to do.
#3
Re: finding controls in two containers using 1 foreach?
Posted 07 August 2012 - 07:17 AM
If you're looking to use one loop to search two collections that contain the same type, you'll want to Concat the two collections together.
Edit: Please do not open duplicate topics.
http://www.dreaminco...sing-1-foreach/
Edit: Please do not open duplicate topics.
http://www.dreaminco...sing-1-foreach/
Page 1 of 1
|
|

New Topic/Question
This topic is locked




MultiQuote






|