473,407 Members | 2,314 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,407 software developers and data experts.

Mdi Parent controls showing on Mdi Child forms

Hi there,

In my Mdi application, I have placed a set of controls on the parent form to
call child forms. The problem is that the controls hide the child forms. I
have used SendToBack when Im calling the child form, that works fine.

The problem arrises when I want to show those controls again when I close
the child form. Im sure BringToFront will work but im not sure how to do this
from the child form.

Please help!

Jul 21 '05 #1
2 3037
Brindley,

For the MDI parent it is nicer to use beside the menu's the buttonbar, and
that than as can do as with other controls dock them to the top. The button
bar (toolbar) does that automaticly because it is in it.

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor
"Brindley" <Br******@discussions.microsoft.com>
Hi there,

In my Mdi application, I have placed a set of controls on the parent form
to
call child forms. The problem is that the controls hide the child forms. I
have used SendToBack when Im calling the child form, that works fine.

The problem arrises when I want to show those controls again when I close
the child form. Im sure BringToFront will work but im not sure how to do
this
from the child form.

Please help!

Jul 21 '05 #2
Thanks.

I found that it's much easier to use another form as a program menu instead
of using the Mdi Parent form for this. For each of the new forms that Is
created from another child form, I assigned the new child form to the active
Mdi Parent form.

Used:
Private Sub,,,,

Dim Menu as new frmMenu

Menu.MdiParent = frmMain.activeform 'frmMain is the main parent form.
me.close()
Menu.show()

End Sub

Thanks for your imput.
Brindley

"Cor Ligthert" wrote:
Brindley,

For the MDI parent it is nicer to use beside the menu's the buttonbar, and
that than as can do as with other controls dock them to the top. The button
bar (toolbar) does that automaticly because it is in it.

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor
"Brindley" <Br******@discussions.microsoft.com>
Hi there,

In my Mdi application, I have placed a set of controls on the parent form
to
call child forms. The problem is that the controls hide the child forms. I
have used SendToBack when Im calling the child form, that works fine.

The problem arrises when I want to show those controls again when I close
the child form. Im sure BringToFront will work but im not sure how to do
this
from the child form.

Please help!


Jul 21 '05 #3

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

Similar topics

13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
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...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
2
by: Brindley | last post by:
Hi there, In my Mdi application, I have placed a set of controls on the parent form to call child forms. The problem is that the controls hide the child forms. I have used SendToBack when Im...
0
by: Innova | last post by:
Hi, We are working on a gridview inside the gridview (parent-child) scenario. The data of child grid will depend on the data of parent. Objectives: 1.Add new row in parent grid after each row...
4
by: raj_genius | last post by:
I hav two queries, whc are as follows: FIRSTLY: is it possible to access the controls(by name) of a parent form(MDI) from its child forms??if yes then how??plzz provide a coded example in VB if...
0
by: ppearson3000 | last post by:
I have 2 forms.. a customer form and an addnew customer form. Basicially when you click on the addnew button, the addnew form opens. In the parent form, I add a new item using the bindingsource......
2
by: Bob Johnson | last post by:
..NET 3.5: I have placed two controls at the top of an Mdi parent form. The top-most control is a Panel that is docked to the Top. Immediately below the Panel is a user control that is Anchored to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.