R
Reiner Max
Hello i try do this.
Class DemoBase
Public Delegate Sub DemoItemEventHandler(ByVal sender As Object, ByVal e _
As DemoItemEventArgs)
Public Event ItemCreated(ByVal e As DemoItemEventArgs)
Protected Sub OnItemCreated(ByVal e As DemoItemEventArgs)
RaiseEvent ItemCreated(e)
End Sub
End Class
So now I like to fire the event ItemCreated from this class
Class DemoItems
Function createDemoItems()
.............................
e.Control = td
OnItemCreated(e)
End Function
End Class
then I access this event from my aspx page
Sub DemoBuilder1_ItemCreated(ByVal sender As Object, ByVal e As
DemoBuilder.DemoItemEventArgs) Handles DemoBuilder1.ItemCreated
End Sub
My reason for this way is i can't access events in the class DemoItems
from my aspx page.
Thanks for help.
Max
Class DemoBase
Public Delegate Sub DemoItemEventHandler(ByVal sender As Object, ByVal e _
As DemoItemEventArgs)
Public Event ItemCreated(ByVal e As DemoItemEventArgs)
Protected Sub OnItemCreated(ByVal e As DemoItemEventArgs)
RaiseEvent ItemCreated(e)
End Sub
End Class
So now I like to fire the event ItemCreated from this class
Class DemoItems
Function createDemoItems()
.............................
e.Control = td
OnItemCreated(e)
End Function
End Class
then I access this event from my aspx page
Sub DemoBuilder1_ItemCreated(ByVal sender As Object, ByVal e As
DemoBuilder.DemoItemEventArgs) Handles DemoBuilder1.ItemCreated
End Sub
My reason for this way is i can't access events in the class DemoItems
from my aspx page.
Thanks for help.
Max