Hi Leon,
here it's a sample in VB:
Public Class ReconcileAction
Public Event ReconcileComplete As EventHandler
Protected Sub RaiseReconcileComplete(ByVal e As EventArgs)
RaiseEvent ReconcileComplete(Me, e)
End Sub
Public Sub Reconcile()
' Some code to do the reconciliation
RaiseReconcileComplete(New EventArgs())
End Sub
End Class
And to use it:
Module Module1
Friend WithEvents Action As ReconcileAction = New ReconcileAction()
Sub Main()
Action.Reconcile()
End Sub
Private Sub OnReconcileComplete(ByVal sender As Object, ByVal e As EventArgs) Handles Action.ReconcileComplete
' code to color the row red
MsgBox("Reconciliation completed.")
End Sub
End Module
Note that the Main() would be your click on the button that starts the reconciliation.
Then when the event is triggered by the ReconcileAction the message box will appear (you should replace the message box with the code to color the row red).
Best regards,
Pedro Magueija