ByVal sender As Object , ByVal e As EventArgs
however I cannot declare the subroutine for my event call with the parameter type EventArgs. The compiler does not recognise it.
I probably can get by using type object ,but EventArgs would be nice so I can get the intellinsense working and also I will then know what possibilities I have with that parameter too.
see my code below
- Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
'--- step 002 - all these lines below
_salesOrderForm = DirectCast(JiwaForm, JiwaSalesUI.SalesOrder.SalesOrderEntryForm)
AddHandler _salesOrderForm.SalesOrder.SaveStart, AddressOf SalesOrderSaveStart
End Sub
'--- step 003 this sub below
Private Sub SalesOrderSaveStart(ByVal sender As Object , ByVal e As EventArgs )
MsgBox("hello from sales order save - new")
End Sub