Can any one please help me in following in VB.NET2005:

I want that whenever the word setting appears a textbox would be created during runtime i.e here it appears for 4 times so 4 textboxes should be created, if it appears for 5 times then 5 textboxes would be created......
Can it be done using array? If yes then how?

<setting name="Astrology" serializeAs="String">
<setting name="Cricket" serializeAs="String">
<setting name="Foreigncurrency" serializeAs="String">
<setting name="Jobs" serializeAs="String">

Please help soon

9 Years
Discussion Span
Last Post by Ramy Mahrous

I don't really understand you but I'll answer your thread subject

and I am sorry I'll write code in C# as I don't know VB.net at all :$

private int GetNumberOfControls()
//returns the number of control to be created

private void CreateTextbox()
TextBox textBox;

for(int i=0; i<GetNumberOfControls(); i++)
textBox = new TextBox();
textBox.Location = new Point(YourX, YourY);
..... //other properties
..... //other properties
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.