I am making a custom control that implements multiple controls, one of them being a ComboBox.

I have the following code to edit the ComboBox's Items property.

vb.net Code:
  1. Dim _items as Object()
  2. <Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", GetType(UITypeEditor)), MergableProperty(False), Category("CatData"), DesignerSerializationVisibility(DesignerSerializationVisibility.Content), Localizable(True), Description("ComboBoxItemsDescr")> _
  3.     Property Items() As System.Windows.Forms.ComboBox.ObjectCollection
  4.         Get
  5.             Return cmb.Items
  6.         End Get
  7.         Set(ByVal value As System.Windows.Forms.ComboBox.ObjectCollection)
  8.             value.CopyTo(_items, 0)
  9.             cmb.Items.Clear()
  10.             cmb.Items.AddRange(_items)
  11.         End Set
  12.     End Property

That code does work, but it seems to me there may be a better way to do this. Any ideas?