>If I try to access an objects value on Form1 from Form2 quoting the namespace, I get the error: > >'.FormMain.txtChartNo.Text' is inaccessible due to its protection level.
You can define Construtor to receive the parameters when Form object is created. For example,
public Class myForm : System.Windows.Forms.Form { protected string cMyProperty; public myForm(string tcMyPara) { cMyProperty = tcMyPara } }
Here is how you call myForm from Form1 with parameter.
myForm loForm = new myForm("ParameterValue"); loForm.Show();
PS: Please execuse syntax errors in above examples...