Visual Studio 2008 C#. Web Controls
I have a simple user control (TextBoxViewer) that contains 2 controls a TextBox and a Label Control. The usercontrol exposes a default "Text" property and also has a Mode Enum for Edit and Display. Depending on the mode if "Edit" then TextBox is visible and Label is hidden and the opposite is true for Display.
I know I can expose a public readonly property of the TextBox that is contained inside my user control. What I would like to be able to do is have the properties window show the TextBox Property with a + sign and then expand to show all the standard properties and events of the TextBox control or a popup with all the properties and events of the TextBox. Like if you have a Date property the designer will popup a calendar control for you to pick a date. Is there a way to do this easily without having to wrap each property and event of the TextBox in the UserControl?
Thanks
Dan
I have a simple user control (TextBoxViewer) that contains 2 controls a TextBox and a Label Control. The usercontrol exposes a default "Text" property and also has a Mode Enum for Edit and Display. Depending on the mode if "Edit" then TextBox is visible and Label is hidden and the opposite is true for Display.
I know I can expose a public readonly property of the TextBox that is contained inside my user control. What I would like to be able to do is have the properties window show the TextBox Property with a + sign and then expand to show all the standard properties and events of the TextBox control or a popup with all the properties and events of the TextBox. Like if you have a Date property the designer will popup a calendar control for you to pick a date. Is there a way to do this easily without having to wrap each property and event of the TextBox in the UserControl?
Thanks
Dan