Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
Hello All,I have created an application that reads items from a database. What I want to do now is create an array of text boxes that are populated with the data retrieved from the database.The problem is that I am unsure how to create an array of textboxes at runtime. I can use the .set_Size() method to place the box.So far I have:[CODE]System.Windows.Forms.TextBox [] tbxResults = new TextBox[20];while (myDataReader.Read()){ tbxResults[loopControl] = new TextBox(); tbxResults[loopControl].set_Location(new System.Drawing.Point(8, y)); tbxResults[loopControl].set_Visible(true); loopControl ++; y += 24;}[/CODE]However the does not work.Any help will be most appreciatedHarold Clements
Hello All,
I have created an application that reads items from a database. What I want to do now is create an array of text boxes that are populated with the data retrieved from the database.
The problem is that I am unsure how to create an array of textboxes at runtime. I can use the .set_Size() method to place the box.
So far I have:
[CODE]System.Windows.Forms.TextBox [] tbxResults = new TextBox[20];
while (myDataReader.Read())
{
tbxResults[loopControl] = new TextBox();
tbxResults[loopControl].set_Location(new System.Drawing.Point(8, y));
tbxResults[loopControl].set_Visible(true);
loopControl ++;
y += 24;
}[/CODE]
However the does not work.
Any help will be most appreciated
Harold Clements