Behavior Constructor ()


Initializes a new instance of the Behavior class.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

Protected Sub New

The following code example demonstrates how to initialize a new instance of the Behavior class. This code example is part of a larger example provided for the BehaviorService class.

Public Sub New(ByVal behaviorSvc As _
    System.Windows.Forms.Design.Behavior.BehaviorService, _
    ByVal control As Control)

    MyBase.New(New MyBehavior())
    Me.behaviorSvc = behaviorSvc
    Me.control = control
End Sub

.NET Framework
Available since 2.0
Return to top