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

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 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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.