473,468 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form in Form on panel/frame

Van
Anyone know if it's possible to 'project' a (child) form onto a panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on Form_A),
not using MDI-style

Thanks in advanced!
Oct 20 '06 #1
5 1749
VJ
Not possible.. as Form is a Top level object.

Vijay

"Van" <Va*@discussions.microsoft.comwrote in message
news:EB**********************************@microsof t.com...
Anyone know if it's possible to 'project' a (child) form onto a
panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on
Form_A),
not using MDI-style

Thanks in advanced!

Oct 20 '06 #2
Rubbish!!!!!!!!!!!!

Form_B _frm = new Form_B();
_frm.Parent = panel_A;
_frm.Show();

Be careful though. You will find that there is quaite an overhead involved.
"VJ" <no***********@yahoo.comwrote in message
news:Oh**************@TK2MSFTNGP05.phx.gbl...
Not possible.. as Form is a Top level object.

Vijay

"Van" <Va*@discussions.microsoft.comwrote in message
news:EB**********************************@microsof t.com...
>Anyone know if it's possible to 'project' a (child) form onto a
panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on
Form_A),
not using MDI-style

Thanks in advanced!


Oct 21 '06 #3
PS

"Stephany Young" <noone@localhostwrote in message
news:u8**************@TK2MSFTNGP02.phx.gbl...
Rubbish!!!!!!!!!!!!

Form_B _frm = new Form_B();
_frm.Parent = panel_A;
_frm.Show();
Rubbish?? Try it yourself.

An unhandled exception of type 'System.ArgumentException' occurred in
System.Windows.Forms.dll
Additional information: Top-level control cannot be added to a control.

PS
>
Be careful though. You will find that there is quaite an overhead
involved.
"VJ" <no***********@yahoo.comwrote in message
news:Oh**************@TK2MSFTNGP05.phx.gbl...
>Not possible.. as Form is a Top level object.

Vijay

"Van" <Va*@discussions.microsoft.comwrote in message
news:EB**********************************@microso ft.com...
>>Anyone know if it's possible to 'project' a (child) form onto a
panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on
Form_A),
not using MDI-style

Thanks in advanced!


Oct 21 '06 #4
Oh what a silly little mistake:

Form_B _frm = new Form_B();
_frm.TopLevel = false;
_frm.Parent = panel_A;
_frm.Show();
"PS" <ec***********@hotmail.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
>
"Stephany Young" <noone@localhostwrote in message
news:u8**************@TK2MSFTNGP02.phx.gbl...
>Rubbish!!!!!!!!!!!!

Form_B _frm = new Form_B();
_frm.Parent = panel_A;
_frm.Show();

Rubbish?? Try it yourself.

An unhandled exception of type 'System.ArgumentException' occurred in
System.Windows.Forms.dll
Additional information: Top-level control cannot be added to a control.

PS
>>
Be careful though. You will find that there is quaite an overhead
involved.
"VJ" <no***********@yahoo.comwrote in message
news:Oh**************@TK2MSFTNGP05.phx.gbl...
>>Not possible.. as Form is a Top level object.

Vijay

"Van" <Va*@discussions.microsoft.comwrote in message
news:EB**********************************@micros oft.com...
Anyone know if it's possible to 'project' a (child) form onto a
panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on
Form_A),
not using MDI-style

Thanks in advanced!



Oct 21 '06 #5
Van
Thanks Stephany, that's exactly what i was looking for.

Van

"Stephany Young" wrote:
Oh what a silly little mistake:

Form_B _frm = new Form_B();
_frm.TopLevel = false;
_frm.Parent = panel_A;
_frm.Show();
"PS" <ec***********@hotmail.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...

"Stephany Young" <noone@localhostwrote in message
news:u8**************@TK2MSFTNGP02.phx.gbl...
Rubbish!!!!!!!!!!!!

Form_B _frm = new Form_B();
_frm.Parent = panel_A;
_frm.Show();
Rubbish?? Try it yourself.

An unhandled exception of type 'System.ArgumentException' occurred in
System.Windows.Forms.dll
Additional information: Top-level control cannot be added to a control.

PS
>
Be careful though. You will find that there is quaite an overhead
involved.
"VJ" <no***********@yahoo.comwrote in message
news:Oh**************@TK2MSFTNGP05.phx.gbl...
Not possible.. as Form is a Top level object.

Vijay

"Van" <Va*@discussions.microsoft.comwrote in message
news:EB**********************************@microso ft.com...
Anyone know if it's possible to 'project' a (child) form onto a
panel/frame
of an existing form? (and how to do it?)

i.e:
Form_A has a panel_A
Form_B (with it's content) has to be shown on panel_A (which is on
Form_A),
not using MDI-style

Thanks in advanced!



Oct 23 '06 #6

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

Similar topics

1
by: w.p. | last post by:
Hello! I want change default tab traversing in my app. But i don't know how to do it :( Belowe i include simple example - i want change default tab order: radiobutton "mode11" -> radiobutton...
0
by: Mac via DotNetMonster.com | last post by:
I have a MDI parent form and the only control on it is a panel anchored to the left hand side. I have menu items on the MDI parent that show & hide this panel. Ideally I would like it to show by...
3
by: Yuk Tang | last post by:
If I have a panel in which I have placed a maximised form, what's the easiest way to resize the form to automatically fill the panel when the panel is resized? I am using VS 2003. -- Cheers,...
3
by: John Salerno | last post by:
I'm using the sample code of the file 'simple.py' and trying to make a single window with a panel in it, but I keep getting an error. Here's my code: (I know I might need something else, like a...
10
by: markwalker84 | last post by:
Hello everyone! Got a bit of a problem... Two of the panels on my program contain a number of check boxes. The exact number of which is determined by a pair of variables. I have recently...
3
by: citronelu | last post by:
Hi, I'm new to wxpython, and the following code is my first serious attempt: #~ start code import wx class MyPanel(wx.Panel):
5
by: marfi95 | last post by:
I have a form that has a left and right panel. In the left panel is a treeview. The right panel I want to change dynamically based on the type of node selected. What I'm doing is loading the...
0
by: Soren | last post by:
Hi, I'm trying to create a small GUI program where I can do plots using Matplotlib. I've been trying to borrow code from the examples at the matplotlib website, but I can't get it to work. I...
1
Elias Alhanatis
by: Elias Alhanatis | last post by:
Dear friends, First of all , i wish a Happy New Year to all of you!!!! I have been learning Python and the Tkinter GUI package for the last 6 months , and now i am trying to rewrite a program...
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
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,...
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...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.