MyClass
Public Event ButtonClicked
Sub Button1_Click()
RaiseEvent(Me,EventArgs)
End Sub
End MyClass
'Then in my activity I'd just add a handler and be done with it.
[Activity]
Sub Activity_Create(FirstTime As Boolean)
'If it worked, something like this
Dim x as Polaroid
x.initialize(Me,"polaroid")
'or vb style:
Addhandler x.Click, Polaroid_Click
End Sub
Sub Polaroid_Click(sender as object, EventArgs as object)
'Do what my activity wants
End Sub