I assume you have multiple MDI Forms and each MDI Form has a Menu?
Well, in the Click Event that opens your QueryBuilder Form you can do the following.
public partial class frmMdiForm1 : Form
{
public frmMdiForm1()
{
InitializeComponent();
}
private void Button_Click(Object sender, EventArgs e)
{
Form frm = new frmQueryBuilder();
frm.MdiParent = this;
frm.Show
}
}
You probably have the same code in your second MDI Form.
public partial class frmMdiForm2 : Form
{
public frmMdiForm2()
{
InitializeComponent();
}
private void Button_Click(Object sender, EventArgs e)
{
Form frm = new frmQueryBuilder();
frm.MdiParent = this;
frm.Show
}
}
Because both Click Events open a new QueryBuilder Form with their current parent Form as MdiParent your Forms should have their respective MdiForms as parent.