473,394 Members | 1,802 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,394 software developers and data experts.

opening child form from another child form?

VMI
In my MDI Widows app, how can I open a child Form X from within another
child Form Y so that X is still inside the parent MDI Form? I'm using this
code to open the Form from X (a child Form) but it opens as a separate Form
outside the MDI:

frm_auditFromOpen frmAuditFromOpen = new frm_auditFromOpen();
frmAuditFromOpen.Owner = this.MdiParent;
frmAuditFromOpen.Show();

Thanks.
Nov 16 '05 #1
3 4878
VMI wrote:
In my MDI Widows app, how can I open a child Form X from within another
child Form Y so that X is still inside the parent MDI Form? I'm using this
code to open the Form from X (a child Form) but it opens as a separate Form
outside the MDI:

frm_auditFromOpen frmAuditFromOpen = new frm_auditFromOpen();
frmAuditFromOpen.Owner = this.MdiParent;
frmAuditFromOpen.Show();


Try
frmAuditFromOpen.MdiParent = this.MdiParent;

HTH
JB
Nov 16 '05 #2
VMI
I had tried that before but it still opens as a separate window (is not
contained in the MDI)
"The Last Gunslinger" <jb******@yahoo.com> wrote in message
news:cp*****************@news-server.bigpond.net.au...
VMI wrote:
In my MDI Widows app, how can I open a child Form X from within another
child Form Y so that X is still inside the parent MDI Form? I'm using this code to open the Form from X (a child Form) but it opens as a separate Form outside the MDI:

frm_auditFromOpen frmAuditFromOpen = new frm_auditFromOpen();
frmAuditFromOpen.Owner = this.MdiParent;
frmAuditFromOpen.Show();


Try
frmAuditFromOpen.MdiParent = this.MdiParent;

HTH
JB

Nov 16 '05 #3
VMI
It worked. It was just an error on my part.
Thanks.

"The Last Gunslinger" <jb******@yahoo.com> wrote in message
news:cp*****************@news-server.bigpond.net.au...
VMI wrote:
In my MDI Widows app, how can I open a child Form X from within another
child Form Y so that X is still inside the parent MDI Form? I'm using this code to open the Form from X (a child Form) but it opens as a separate Form outside the MDI:

frm_auditFromOpen frmAuditFromOpen = new frm_auditFromOpen();
frmAuditFromOpen.Owner = this.MdiParent;
frmAuditFromOpen.Show();


Try
frmAuditFromOpen.MdiParent = this.MdiParent;

HTH
JB

Nov 16 '05 #4

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

Similar topics

1
by: Dave Veeneman | last post by:
Is there a simple way to open an MDI child form behind the current child form? Thanks. Dave Veeneman Foresight Systems
3
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
3
by: yup | last post by:
I was wondering if you know a way to have, let's say, you would click on a menu bar item (where something like file, edit, format, help options are on Microsoft Word) and instead of opening a...
1
by: John | last post by:
Hi I have this sub in a main form; Sub OpenForm(ByVal x As String) Select Case x Case "1" form1 = New frmClients form1.TopLevel = False Me.FormsPanel.Controls.Add(form1)
2
by: Prabhudhas Peter | last post by:
If I click a menu to open a form which already open...the vb.net opens a new window while existing open window is there...i want to restric the opening of a new instance of an already opened...
11
by: Tony K | last post by:
I have a MDI application. On the menu toolstrip child forms are selected from one of the menus. I don't want to play the disable/enable menu item game. I have selected that open forms are added...
1
by: Mucker | last post by:
This could be a difficult one, so please bear with me. I've an assembly containing Delphi 2006.NET forms. A C# app, via reflection opens these forms . This works fine - I've a C# app, opening...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
3
by: chuck gregory | last post by:
I'm using the 2002 (10.6771.6845) SP3 Access program. I have a form that will not show previously entered data. It has about 45 fields. I will call it the "parent" form. The "parent" form was at...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.