Click here to Skip to main content
15,921,841 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Have a problem....I had to do a chat program for college. I got the coding for the idea of the internet, but now i'm facing a problem, that my knowledge of C# does not yet cover.

The client side is working perfectly, no problems there, but on the Server side, everything is not okay. I got so fed up that I litterally copied the guy's coding just as it is, and the error still kept popping up.

This is the error i'm currently struggling with: Inconsistent accessibility: parameter type 'ChatZServer.ChatServer.StatusChangedEventArgs' is less accessible than method 'ChatZServer.frmChatZServer.mainServer_StatusChanged(object, ChatZServer.ChatServer.StatusChangedEventArgs)' C:\Users\PTA11HE911008.CTUTRAINING\Documents\Visual Studio 2008\Projects\ChatZServer\ChatZServer\Form1.cs

Is there any one with the knowledge to help me.

I can even give you my coding if neccesary
Posted
Updated 24-Jul-11 20:57pm
v2
Comments
Sergey Alexandrovich Kryukov 25-Jul-11 2:38am    
Take a labor just to paste the error correctly to the title: ***not*** availability, accessibility.
--SA
Henco Eloff 25-Jul-11 2:45am    
You'll have to understand that I'm still a beginner to programming, and I know that all of you are going to laugh at me, but I've tried everything....Is there anyway you could give me a straight forward answer, and then explain how you got there.
Henco Eloff 25-Jul-11 4:03am    
I Found my error. But in Fixing that error, i got 11 others. Now it says that some of my EventHandlers are also not declared....Thanks for your Help
Sergey Alexandrovich Kryukov 25-Jul-11 19:46pm    
You're very welcome. Nobody try to lough of you, but I think you should be able to lough at yourself, to be really social person and... check the spelling. It's not so difficult, no matter if you're a beginner or not.

It's ridiculously unfair to say "all of you are going to laugh at me". Just take a look to have an idea how much help I provided to people here... anyway, your assessment of someones work is quite helpful, but only if you're informed enough about your judgement. :-)

Good luck,
--SA

1 solution

Read error message thoroughly, understand it and change access modifier to the one which is required to make them the same.

—SA
 
Share this answer
 

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