How can the properties of a constituent control be exposed using C# application project?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
How can the properties of a constituent control be exposed using C# application project?
Rating:
The properties of a constituent control can be exposed by the following ways:
- Creating a public property for a user control.
- Using the getter and setter for a property in the property definition. It will effect the change in the
private property of the constituent control.
{
get
{
return(MyButton1.ForeColor);
}
set
{
MyButton1.ForeColor = value;
}
}
Rating:
Was this information helpful?
Other articles
- Note about the VScrollBar control
- What is the TableLayOutPanel control?
- What is the EndPrint event?
- What is the HelpProvider component?
- How is the MenuStrip control useful?
