260 pts.
 Collection Or Reference Of Multiple Runtime Controls In FLP For Only Specific Controls
I have create two runtime textbox contols in FlowLayOutPanel as below..
One  Textbox Control
TextBox tb= new TextBox();
tb.Name="tbox"+i.tostring();
this.FlowLayOutPanel1.Controls.Add(tb);
Another Textbox Control
TextBox tb= new TextBox();
tb.Name="tbox"+i.tostring();
this.FlowLayOutPanel1.Controls.Add(tb);
Now both are ready for runtime.
If I have to collect  or reference only "tbox" control without effecting "tbbox" control then How to collect/refrenced.
if I use foreach Loop then both controls are effect then how to put only "tbox" control in If Condition to setfocus on another control which is outof FLP1 Control.
e.g.
if (tbox.text=="")
{
textbox2.focus();
}
Kindly Guide Me and provide better code for it.


Software/Hardware used:
C#, VS-2005
ASKED: August 21, 2010  12:05 PM
UPDATED: August 23, 2010  1:42 PM

Answer Wiki:
Maheshwag, you already asked <a href="http://itknowledgeexchange.techtarget.com/itanswers/runtime-control-indexing-problems-to-set-the-index-on-control-for-call-it-in-if-condition/#comment-80671">this question</a>. Asking it again in a new question won't help. If you want to provide more details, please continue the discussion in your previous question. Also, you should try to post more code (the foreach loop you tried, for example). And, if you think we are not understanding your situation/problem correctly, you might want to get some help rewording it.
Last Wiki Answer Submitted:  August 23, 2010  1:42 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _