Hello friends,
I have an extended ListView class and I wanted it to allow aplication to catch an event when its "View" property changes. Is the code below the best way to achieve this?
vb Code:
Public Shadows Property View As View Get Return MyBase.View End Get Set(value As View) MyBase.View = value OnViewChanged(EventArgs.Empty) End Set End Property Public Event ViewChanged As EventHandler Protected Overridable Sub OnViewChanged(ByVal e As EventArgs) RaiseEvent ViewChanged(Me, e) End Sub
Thank you very much!




Reply With Quote
