Vb.Net AddIn - Show A Message Box On "SAVE" Or "CLOSE"

Can anybody help?

I am trying to write a Vb.Net "AddIn" for Solidworks that shows a message box when ever the document (Assembly, Part or Drawing) is "SAVED" by pressing the "SAVE" button as well as showing a message box whenever the document (Assembly, Part or Drawing) is closed.

Below is my code so far....

    Public Function ConnectToSW(ByVal ThisSW As Object, ByVal Cookie As Integer) As Boolean Implements ISwAddin.ConnectToSW
       mSolidWorks = TryCast(ThisSW, ISldWorks)

       AddHandler mSolidWorks.DocumentSaveNotify, AddressOf DocumentSaveNotifyHandler

       AddHandler mSolidWorks.DocumentCloseNotify, AddressOf DocumentCloseNotifyHandler

       RegistryKey = "HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\PMM\\Settings"

       Return True
   End Function

I am having trouble with the two lines highlighted in yellow.

Can anybody tell me what I am doing wrong?

Many thanks in advance!

Darren