N
nick
I have a main form, with a public property. And this form open another form
by click a button. Is it possible that the new created form access the
public property of the main form?
public class MainForm : System.Windows.Forms.Form
{
......
public string P1;
private void mniFreeze_Click(object sender, System.EventArgs e)
{
NewForm fmNewForm= new NewForm();
fmNewForm.Show();
}
.......
}
In the class NewForm, how to access P1?
by click a button. Is it possible that the new created form access the
public property of the main form?
public class MainForm : System.Windows.Forms.Form
{
......
public string P1;
private void mniFreeze_Click(object sender, System.EventArgs e)
{
NewForm fmNewForm= new NewForm();
fmNewForm.Show();
}
.......
}
In the class NewForm, how to access P1?