System.Windows.Forms.ComboBox.AddItemsCore(object[])

Here are the examples of the csharp api class System.Windows.Forms.ComboBox.AddItemsCore(object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
protected override void SetItemsCore(IList values)
        {
            Items.Clear();
            
            if (!DesignMode) 
            {
                Items.Add(notSetText);
            }
            
            // Unfortunately. the interfaces between SetItemsCore and
            // AddItemsCore are mismatched as of 3106.
            ArrayList items = new ArrayList();
            foreach(Object item in values)
            {
                items.Add(item);
            }
            
            base.AddItemsCore(items.ToArray());
        }