ToolboxComponentsCreatingEventArgs Class
.NET Framework 2.0
Provides data for the ComponentsCreating event that occurs when components are added to the toolbox.
Namespace: System.Drawing.Design
Assembly: System.Drawing (in system.drawing.dll)
Assembly: System.Drawing (in system.drawing.dll)
The following example method returns a ToolboxComponentsCreatingEventArgs that indicates the designer host that is about to receive a new component or set of components:
Public Function CreateToolboxComponentsCreatingEventArgs(ByVal host As System.ComponentModel.Design.IDesignerHost) As ToolboxComponentsCreatingEventArgs Dim e As New ToolboxComponentsCreatingEventArgs(host) ' The designer host of the document receiving the components e.DesignerHost Return e End Function
public ToolboxComponentsCreatingEventArgs
CreateToolboxComponentsCreatingEventArgs(System.ComponentModel.Design.
IDesignerHost host)
{
ToolboxComponentsCreatingEventArgs e =
new ToolboxComponentsCreatingEventArgs(host);
// The designer host of the document receiving the components
// e.DesignerHost
return e;
} //CreateToolboxComponentsCreatingEventArgs
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: