I am working on the TCP/IP application using C#. I have downloaded the source

code from I have loaded the application in my Visual Studio .NET

While I try to run the application i get the following error:

'System.Windows.Forms.Command' is inaccessible due to its protection level.

When I put this and searched in the google, i could not get the solution. Can

anyone help me to solve the issue.

Thanks in advance,


Re: Visual C# Language Issue with network programming in C#

Paul Louth

'System.Windows.Forms.Command' is a member variable on your Form. It is marked at private or protected, when it should be marked as public or protected. public if it's required by an external piece of code, or protected if it's required by a sub-class.