BCGControlBar Library for .NET
SetupEventHandlers Method (LayoutController)




A form to add or remove event handlers.
If TRUE, event handlers will be added, otherwise removed.
Adds or removes from the specified form event handlers defined in the LayoutController class for such events for System.Windows.Forms.Form object as Resize, ControlAdded, ControlRemoved, Disposed, SystemColorChanged. Called by the framework when the Layout Instance registers and unregisters component, adds new entry and related form to entries' collection.
Syntax
'Declaration
 
Public Sub SetupEventHandlers( _
   ByVal form As Form, _
   ByVal set As Boolean _
) 
'Usage
 
Dim instance As LayoutController
Dim form As Form
Dim set As Boolean
 
instance.SetupEventHandlers(form, set)
public void SetupEventHandlers( 
   Form form,
   bool set
)
public: void SetupEventHandlers( 
   Form* form,
   bool set
) 
public:
void SetupEventHandlers( 
   Form^ form,
   bool set
) 

Parameters

form
A form to add or remove event handlers.
set
If TRUE, event handlers will be added, otherwise removed.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LayoutController Class
LayoutController Members

Send Feedback