I am trying to create a user control with a label and combobox controls and I don't want to have to create all the exposed properties that already exist for the combobox in my control.
My question is this: Is is possible to automatically inherit all the properties for the combobox and the label?
For example, I don't want to have to write this code to show the combobox's SelectedIndex Property but have it show up in the control's property
Thanks
My question is this: Is is possible to automatically inherit all the properties for the combobox and the label?
For example, I don't want to have to write this code to show the combobox's SelectedIndex Property but have it show up in the control's property
VB.NET:
<System.ComponentModel.Description("Selected Index"), System.ComponentModel.Category("Combobox")> _
Public Property SelectedIndex() as Integer
Get
Return Combobox.SelectedIndex
End Get
Set (ByVal value as Integer)
Combobox.SelectedIndex = value
End Set
End Property
Thanks