|
-
Nov 18th, 2012, 11:55 AM
#1
Thread Starter
New Member
[RESOLVED] WPF/C# Varying number of controls
Hi,
Could anyone please point me in the right direction to do following in WPF/C#.
Lets say I have an array of strings and the number of items in the array is varying.
What is the correct way to go and create a Label and a Text box to account to each item in the array dynamically?
When above is done, how can I refer to the controls(TextBoxes) created in code?
e.g.
Lets say I have below 3 strings in the array
- Name
- Email
- Telphone
How do I create labels and text boxes for above three items.
And after someone has entered data in the above created text boxes, how to read them in code?
Lets say they should go into a database table in below format
TextBoxName,Value
Highly appreciate any help on this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|