9 references to CreateComponents
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
198comps = tool.CreateComponents(host, defaultValues);
System.Windows.Forms.Design.Tests (8)
System\Drawing\Design\ToolboxItemTests.cs (8)
459Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, null))); 463Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, new Hashtable()))); 525Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, null))); 529Assert.Same(component, Assert.Single(item.CreateComponents(mockDesignerHost.Object, new Hashtable()))); 595Assert.Throws<InvalidOperationException>(() => item.CreateComponents(mockDesignerHost.Object, null)); 599Assert.Throws<InvalidOperationException>(() => item.CreateComponents(mockDesignerHost.Object, new Hashtable())); 649Assert.Null(item.CreateComponents(mockDesignerHost.Object, null)); 653Assert.Null(item.CreateComponents(mockDesignerHost.Object, new Hashtable()));