Drawing to form from class
I cannot access another public form from a class in a differennt .cs file, same namespace. The problem occurs in the parameter:
public Form1 MainForm;
public BuildImageClass(Form1 F1)
{
MainForm = F1;
}
Error: Inconsistent acessibility: parameter type 'WindowsApplication1.Form1' is less accessible than method 'WindowsApplication1.ImageClass.Form1 (WindowsApplication1.Form1)'
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Andrzej WegierskiRank #1,729 · 877 reputationPosted Nov 8, 2004, 11:24 PM EST