Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I provide dynamic default values for components or controls?

Provide ShouldSerialize and Reset Methods along with your property.

Example:

private bool ShouldSerializeFont() 
{ 
return this.bFontSet; 
} 

private void ResetFont() 
{ 
this.localFont = null; 
} 

Contributed from George Shepherd's Windows Forms FAQ



Page view counter