Hi, the problem describes as below:
1st question
//============== code ===================
//= in Parent Form, I create following function:
void newForm(Form parent,Form theForm){
foreach(Form subForm in parent.MdiChildren){
if(subForm.Name == theForm.Name){
subForm.Hide();
subForm.Show();
return;
}
}
theForm.MdiParent = parent;
theForm.Show();
}
//= and when I want to create a form, I used the function just defined
newForm(this,new subForm1());
//================= code end ========================
when I click a button to luanch the newForm function, it seen like the
program start a new part of the application for me, I check it by adding a
noticefyIcon component in my form.
when I click a button, noticefyIcon create one more in tary bar.
2nd question,
because I use MDI form. in my parent form. I have a contextMenu, and another
one in my child form.
when I new a child form, and right-click on my child form, the parent
contextMenu come up as well.
how to get rid of this problem?
thanks anyone ask!