Login
Register
Close
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Login
Register
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Discussion Forums
.NET
Windows
You must
Sign In
to post a response.
Category:
Windows
08 Aug 2020 23:09
lily
Joined:
06/06/2011
Level:
Gold
Points:
1173
Points:
2
Get all controls using form
How to get all controls in functions by passing input as Form alone( form name or class namel
Function void (Form f)
{
F.controls // textbox or label
}
#770095
11 Sep 2020 12:20
Nirav Lalan
Joined:
06/04/2012
Level:
Gold
Points:
4230
Points:
2
Hi Lily,
You can get all controls using for each loop like below.
public function void (Form f)
{
for each(Control c in f.Controls)
{
MessageBox.Show(c.Name);
}
}
Hope it will help you.
Thanks.
Regards,
Nirav Lalan
DNS Gold Member
"If you can dream it, you can do it."
Sign In
to post your comments
Submit New Thread
Return to
Return to Discussion Forum
Top Contributors
Today
Last 7 Days
soniyasingh
(4)
more...
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds