Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Create Text Boxes At Runtime

$
0
0

I am storing values from a table in a List<string> variable type.  I want to iterate the List<string> and for each value create a text box and write the corresponding value to the text box.  So for example, let's say I have a table that holds the values:

James

Mark

Sarah

Jake

I want to create 4 text boxes and text box 1 containing the value James, text box 2 Mark, text box 3 Sara, text box 4 Jake.  Now this is just example sake the number of actual text boxes needed to be created vary, but that is just an example of what needs to be performed.


Viewing all articles
Browse latest Browse all 2535

Trending Articles