473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MdiChild form inheritance

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!
Nov 20 '05 #1
6 2247
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
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!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #5
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
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!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "Marina Louki" <ma*********@attractionnet.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Supra | last post by:
i got mdichild working. i'm working on similar to mirc chat. when i joined channel #vb the first mdichild is on. then when i wanted to join another channel #visualbasic. then i got second mdichild...
1
by: Mickey Swanson | last post by:
I have a MDI app wich has several different forms I need to call a method on one MDIchild form from another child form. I have a MDI form called frmMDI. I have a mdichild form called frmMain....
6
by: Claus Holm | last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather than making the menuitems public, I'd go for a public method in the parent form to do the change, but when I call the...
2
by: SpotNet | last post by:
Hello NewsGroup, I have a MDIParent form with a docked left treeview control, a splitter control and a generic docked control on the right. Kind of looks like Windows Explorer, though it's...
7
by: VM | last post by:
Hi, Is it possible to open always only one instance of a MDIChild form? Say, if form A is already opened, just give it the focus. I tried declaring theMDIChild forms as private members of the...
1
by: LCAdeveloper | last post by:
Can anyone help me with this? I'm trying to get an MDIChild form to lookup the value of a control on another open MDIChild form, but can't seem to get the right syntax. Let's say the two child...
0
by: Supra | last post by:
i got mdichild working. i'm working on similar to mirc chat. when i joined channel #vb the first mdichild is on. then when i wanted to join another channel #visualbasic. then i got second mdichild...
2
by: Thorgal | last post by:
Hello all I have 2 questions First: I'm trying to print a Listview from an mdichild but how can i address this listview. For example, FrmMain is my Main form. In this Main form I have...
0
by: kardiss | last post by:
I am trying to add Meebo's "Pop-out" kinda feature to my application which when a button is pressed in a MdiChild form, it kicks that MdiChild form out of the MdiParent boundary and acts like a SDI...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.