Thursday, November 7, 2013

C# “is inaccessible due to its protection level” [Solved]

Some time its happen when your modifier are private or protected but need to access anywhere that time just your function need to be protected to public.

I had happened same problem when i write code radio button "OnCheckedChanged" event. I have solved that way to change modifier protected to public.


 public void ShareTransferSelection(object sender, EventArgs e)
    {
      // Code here
    }


Happy Programming!!

No comments:

Post a Comment