TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Avtel Telav
NA
3
0
How to refer to dynamically created TextBlocks later on to update the text?
Mar 28 2010 10:25 PM
Hi,
I used a for-loop to create a number of TextBlocks and add them to a Grid. Later on, in an Event Handler, I want to refer to these TextBlocks and be able to change the text of either some or all, depending on my need.
The problem I'm having is how to refer to the TextBlocks, which were created using one generic name (txtBox) in common for each instance. I tried accessing using the txtBox.Name I set during creation, but that doesn't work.
Would appreciate any suggestions. Thanks!
Reply
Answers (
3
)
Publishing a WPF application with DatePicker
To create Text boxes, Combo boxes, IP Address controls at run time