Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone so I'm trying to auto accept friend requests on my Skype using VB.NET and Skype4COMLib but I'm getting this error:
Private Sub oskype_userauthorizationrequestreceived(pUser As SKYPE4COMLib.User)'cannot handle event 'Public Event UserAuthorizationRequestReceived(sender As Object, e As AxSKYPE4COMLib._ISkypeEvents_UserAuthorizationRequestReceivedEvent)' because they do not have a compatible signature.

The code:
VB
Private Sub oskype_userauthorizationrequestreceived(pUser As User) Handles oSkype.UserAuthorizationRequestReceive 
    If MaterialCheckBox7.Checked = True And pUser.IsAuthorized = False Then
        pUser.IsAuthorized = True
    End If
End Sub

I can't get it solved, I want it to accept friend requests whenever I click my checkbox and disable the auto accept requests whenever I deselect the checkbox.

Any help is appreciated, thank you.

What I have tried:

Private Sub oskype_userauthorizationrequestreceived(pUser As User) Handles oSkype.UserAuthorizationRequestReceive
If MaterialCheckBox7.Checked = True And pUser.IsAuthorized = False Then
pUser.IsAuthorized = True
End If
End Sub
Posted
Comments
iProgramIt 3-Aug-16 21:51pm    
Umm, why would you want to auto-accept Skype Friend Requests? That is not a good idea as you could have spam accounts constantly spamming you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900