I am trying to play around with the MSN libraries. and it contains events.

I dimed the object correctly as I usually do .

but the events are giving me the following compile error :

Procedure declaration does not match description of event or procedure having same name .

here is the Declaration I got from The object browser in VB IDE :
Code:
Event OnTextReceived(pIMSession As IMsgrIMSession, pSourceUser As IMsgrUser, bstrMsgHeader As String, bstrMsgText As String, pfEnableDefault As Boolean)
Here is my Code
Code:
Public WithEvents MyMessenger As Messenger.MsgrObject




Private Sub MyMessenger_OnTextReceived(pIMSession As Messenger.IMsgrIMSession, pSourceUser As Messenger.IMsgrUser, bstrMsgHeader As String, bstrMsgText As String, pfEnableDefault As Boolean)


   MsgBox "alert2"

End Sub



Private Sub Form_Load()

    



 Dim USers As IMsgrUsers
 Dim USer As IMsgrUser2
 Dim Msgr As New Messenger.MsgrObject
 Dim count As Integer
 Dim Addstring As String

 
 Set MyMessenger = New Messenger.MsgrObject
 

...
...
...
...
..