Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft