troubleshooting Question

How to check whether a control's property is set to it's default value?

Avatar of PaulsonGeorge
PaulsonGeorge asked on
.NET ProgrammingC#
5 Comments3 Solutions335 ViewsLast Modified:
Hi Dear Expert,

In a Windows application I am using System.Reflection.PropertyInfo method to get the propeties of a control. How can I check whether the property is set to it's default value, for example, say Dock property is set to "none" or "Visible = true". Is there any method available, like isDefault() or something?

Thanks and Regards,
Pauls Geo.
Join our community to see this answer!
Unlock 3 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros