UserControl collection property

Hi!
i'm working with c# and made a usercontrol which among others has a combobox. I want to make property in my usercontrol which will serve like the items property of the combobox. And what i enter in this property will be added to the items property of the combobox. Please help me how can i do it?
thanx.
[316 byte] By [tombraider] at [2007-12-16]
# 1

Try the following:

.NET 1.1:



[Category("Data")]
[Localizable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
public ComboBox.ObjectCollection Items
{
get { return comboBox1.Items; }
}


.NET 2.0:



[Category("Data")]
[Localizable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
public ComboBox.ObjectCollection Items
{
get { return comboBox1.Items; }
}

DavidM.Kean at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...