Avatar of PaulsonGeorge
PaulsonGeorge
 asked on

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

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.
.NET ProgrammingC#

Avatar of undefined
Last Comment
PaulsonGeorge

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jandromeda

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
PaulsonGeorge

ASKER
Is there any other work around?
SOLUTION
Snarf0001

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Snarf0001

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
PaulsonGeorge

ASKER
Thank you very much. I will try this one and tell you the result.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy