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
Rinki
499
2.4k
32.4k
Programing in WPF
Jan 26 2017 9:27 AM
i want to create a function to clear all textbox
============================================
private void BTN_FORM_Click(object sender, EventArgs e)
{
foreach (Control x in Controls)
//foreach (Control c in Controls)
{
if (c is TextBox)
{
c.Text = "";
}
}
}
===============================
this code is giving error
" the name 'controls' does not exist in current context" ;
Please help its very urgent
Thanks in advance.
Reply
Answers (
1
)
Could not able to fire events to StackPanel in ScrollViewer
Programing in WPF