combit List & Label 24 - .NET Online Web Help
CreateDesignerObject Event


combit.ListLabel24 Namespace > DesignerObject Class : CreateDesignerObject Event

This event CreateDesignerObject is triggered when the user creates a new object. If desired, you can show the initial dialog to the user. This can, for instance, be an assistant that makes it simple for the user to configure the new object. If you don.t want to offer this, simply forego processing of the event. The following example show the display of a MessageBox as soon as the new object is placed in the workspace for the first time. You gain access to the designer window through the event argument. The passed class supports the IWin32Window interface and can, as a result, be used for a MessageBox or another window as a parent.

Syntax
'Declaration
 
Public Event CreateDesignerObject As CreateDesignerObjectHandler
public event CreateDesignerObjectHandler CreateDesignerObject
public:
event CreateDesignerObjectHandler^ CreateDesignerObject
Event Data

The event handler receives an argument of type CreateDesignerObjectEventArgs containing data related to this event. The following CreateDesignerObjectEventArgs properties provide information specific to this event.

PropertyDescription
 
Designer window.  
Example
private void designerObject1_CreateDesignerObject(object sender, CreateDesignerObjectEventArgs e)

{

     MessageBox.Show(e.DesignerWindow, "The new object is now displayed.");

}
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also