Hello!
I was able to replicate this kind of error message by changing the name of the
namespace
.
In your
Form3
you have the following:
namespace Aprer
namespace Aprer
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Close();
}
}
}
This may be the problem.
Check the
namespace
of the form
Form1
and
Form3
, they must be the same.
Or you can put in
Form1
: Using Aprer;
Or even:
Aprer.Form3 f3 = new Aper.Form3();
f3.show();