EDITED
You must pass the instance of FrmA
into the constructor of FrmMenu
.
In FrmA
:
private void Print()
{
FrmMenu ObjMain = new FrmMenu(this);
ObjMain.Show();
}
In FrmMenu
:
public FrmMenu(FrmA f2)
{
f2.CreateButtons("NEW");
}
0
solved invoked function is not working in winforms [closed]