Collection Or Reference Of Multiple Runtime Controls In FLP For Only Specific Controls

260 pts.
Tags:
C#
TextBox
Visual Studio 2005
VS 2005
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

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following