Profile Picture

multiple WithEvents XXX As NDockManager watch

Posted By JSW W. 14 Years Ago
Author
Message
JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
Private WithEvents XXX As NDockManager

I am creating nested NDockManager controls inside another NDockManager dynamically, but i am having a puzzle that i need to have dynamically created NDockManager withEvents.

How could i overcome this problem?

Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello JSW W.,

In vb you can attach to an event also the following way:

AddHandler <FIELD>.<EVENT>, AddressOf <EVENT_HANDLER>

For NDockManager in particular:

Dim manager As NDockManager = New NDockManager()

AddHandler manager.PanelClosed, AddressOf manager_PanelClosed

...

Private Sub manager_PanelClosed(ByVal sender As Object, ByVal e As PanelEventArgs)

...

End Sub

Regards,

Angel.





Similar Topics


Reading This Topic