MdiChild form inheritance

  • Thread starter Thread starter Marina Louki
  • Start date Start date
M

Marina Louki

Hello!

I have a parent and some mdi child forms. Everytime I open a form using the form.mdiparent=me , the form takes the characteristics of the parent. I want these forms to share the same menu, but not to have the same font etc. How can I do this?

Thanks!
 
* "Marina Louki said:
I have a parent and some mdi child forms. Everytime I open a form using the form.mdiparent=me , the form takes the
characteristics of the parent. I want these forms to share the same
menu, but not to have the same font etc. How can I do this?

The same font? Where? For the controls? Did you try to assign a
different font to the controls/form at design time?
 
Well, i think this has to do something with the inherit features.
My mdiparent form has mssanserif as default font. My child form has verdana.
When I try to open my child form from the parent using a menu commmand, the
child form opens but has mssanserif fonts, and also has the anchor features
of the parent. Any ideas?
 
* "Marina Louki said:
Well, i think this has to do something with the inherit features.
My mdiparent form has mssanserif as default font. My child form has verdana.
When I try to open my child form from the parent using a menu commmand, the
child form opens but has mssanserif fonts, and also has the anchor features
of the parent. Any ideas?


I don't think that this has to do anything with inheritance. I created
a blank project, and added an MDI container and another form that uses a
different font. Then I loaded the MDI child into the MDI container and
both forms used the fonts I assigned to them and their controls at
design time. It doesn't make a difference if I open the 2nd form from a
button or a menu in the main form.

I used .NET 1.1 and Windows XP Professional.
 
Thanks Herfriend!

Even programming years with vb, the .net thing looks somewhat strange to me.
Too many features and too many things are done with different way.

Thanks again!
 
* "Marina Louki said:
Even programming years with vb, the .net thing looks somewhat strange to me.
Too many features and too many things are done with different way.

Problem solved?
 
Yes! I did what you said and everything is ok. I am used in copy-paste
forms. That kept the characteristics of the previous form to the new one.
That's why this happened. So from now on, I add a completely new form and
everything works.

Thanks!
 
Back
Top