Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to create a control which will consist of DatePicker and Label.The Label will tell us what day is pressed in DatePicker. This control should have a property LabelVisibility(something like that) to give possibility to disable it. Also it should be able to implement styles and have standart control behavior.
Posted

I don't think you have much choice. You need to create a Custom Control inheriting from User Control. A user control on it's own is not much use.

Here it is directly from the Horses mouth so to speak:

UserControl Class MSDN[^]

Provides an empty control that can be used to create other controls.
 
Share this answer
 
What you're describing is a UserControl.
 
Share this answer
 
Comments
CS2011 12-May-11 6:39am    
indeed it's a user control

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900