Inside the file frmPruebas.cs I have created a property:
public partial class frmPruebas : Form
{
private String mURL;
public string MURL
{
set
{
mURL = value;
}
}
...
}
And when I try to call it from another Form, it does not have access:
private void frmPrincipal_Load(object sender, EventArgs e)
{
Form objPruebas = new frmPruebas();
objPruebas.MURL = txtURL.Text;
objPruebas.ShowDialog();
}
And it tells me that FORM
does not contain a definition for MURL
.
Do you know why it can be?