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