Reputation: 21
client.MessageRecieved += new EasyTCPClient.StringCarrier(this.client_MessageRecieved);
client.OnConnectionLost += new EasyTCPClient.OnConnectionLostHandler(this.client_OnConnectionLost);
client.Error += new EasyTCPClient.ErrorCarrier(this.client_Error);
I get the error messages:
'EasyTCP.EasyTCPClient.OnConnectionLost' is inaccessible due to its protection level 'EasyTCP.EasyTCPClient.MessageRecieved' is inaccessible due to its protection level 'EasyTCP.EasyTCPClient.Error' is inaccessible due to its protection level
I'm fairly new to C# so any help given would be greatly appreciated, thanks. -Neel.
Upvotes: 0
Views: 135
Reputation: 190976
Those errors mean that those events are either private
or protected
modifiers on. Its hard to know how this library is designed.
Same with your BabbelenControls
.
Upvotes: 1
Reputation: 613262
The error message indicates you are trying to access a member with private or protected visibility, which is not allowed.
This library is not part of .net and so it's hard for me to work out how it is meant to be used. I can't immediately find any documentation.
Upvotes: 3
Reputation: 2674
Change the methods to public
in order to be used from another class.
Upvotes: 0