473,806 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to place form in an MDIcontainer?

Hello,

I have a form with 4 pannels docked to the form, each other, with splitters,
ect. that I can drag and change the size of the pannels... I need to place
this form in an MDIcontainer form. The goal is to compensate for different
screen resolutions. I am thinking placing this form with all the pannels in
an MDIcontainer form will give me scrollbars. I can get scrollbars on the
pannel form, but since I have splitters - the scrollbars only appear on half
the form - the half where the pannels are docked to the form. Thus, I am
thinking the MDIform. So how to I place this form inside the MDIcontainer
form?

Or - would it be possible for me to place scrollbar controls on the form and
then place panels on the form and so on?

Thanks,
Rich
May 15 '06 #1
1 1956
I figured it out. Since I am only going to have the one child form in the
MDIcontainer, when I load the MDIcontainer form - in the load event I can say

Privare Form1_Load(...)
myChildForm.MID Parent = Me
myChildForm.Sho w
....

"Rich" wrote:
Hello,

I have a form with 4 pannels docked to the form, each other, with splitters,
ect. that I can drag and change the size of the pannels... I need to place
this form in an MDIcontainer form. The goal is to compensate for different
screen resolutions. I am thinking placing this form with all the pannels in
an MDIcontainer form will give me scrollbars. I can get scrollbars on the
pannel form, but since I have splitters - the scrollbars only appear on half
the form - the half where the pannels are docked to the form. Thus, I am
thinking the MDIform. So how to I place this form inside the MDIcontainer
form?

Or - would it be possible for me to place scrollbar controls on the form and
then place panels on the form and so on?

Thanks,
Rich

May 15 '06 #2

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

Similar topics

1
4004
by: JDeats | last post by:
I have a WinForm that is set as an MDIContainer, I have an Panel on this form that has it's docking property set to "Top". When a spawn an MDI childform inside my parent all is well untill I maximize the MDI child window, when I do this the title bar (with max, min buttons, etc..) for the child appears above my docked Panel. The desired effect is for the MDI child window to maximize with its title bar under the the docked panel on the...
3
3453
by: 2003et | last post by:
Is it possible to use nested MDIContainers? In Visual C#, I want to use another MdiContainer in a MdiContainer. But it gives error, saying that an MdiContainer cannot be child at the same time.... Thanks in advance! E.T.
0
1301
by: Udi | last post by:
Hi All, How do I set the location of a child form in an MDI (parent) form. I tried setting the "Location" propery of the child but it was still drawn at position (0,0). (I have several child forms that needs to be displayed simoltaniously in the parent, that's why I need to set their location. Parent is MDIContainer) MyChildForm form = new MyChildForm(registerMapCtrl); form.MdiParent = this; form.Show();
3
4740
by: Zack Sessions | last post by:
I am using VB.NET 2003. I have read the threads concerning the problem where the FormStartPosition of CenterParent is ignored if the form is displayed with the Show method as opposed to the ShowDialog method. I am having a similar problem and I found a thread that had the following code in the child form's Load event: Me.Location = New Point(( _ Me.MdiParent.ClientSize.Width - Me.Width) * 0.5,
2
10458
by: Billy | last post by:
Hello! I have a main form as MDIContainer in VB.NET 2002 App. Form has menu which call several forms. I call forms that way: -- Dim f As New frmNameX() LoadForm(f) -- Procedure LoadForm check if form is already loaded.
14
3779
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
0
1148
by: Hardik Shah | last post by:
Hi, I have a child form that has textbox1, I want to add default value for textbox1 but value is not stored to textbox successfully. However , If I run same form directly , it runs successfully. I wrote following code, Regards, Hardik Shah
2
1524
by: gregarican | last post by:
I am using VS2005 for creating a pretty basic application. When I open another form from my main form using a button event I just do something like: NewForm newForm = new NewForm(); newForm.Show(); Then when I'm done with the new form I use another button event like: this.Close();
4
1830
by: KMSDXB | last post by:
Hi, I have three forms. "Main form" is a container and "Logon Form" is the child of this. I want to invoke another "AppLogin Form" from "Logon Form" as a child form to get the login details to a diff application. How can this be done? If I make the Logon form as a container, its giving me the error " A form cannot be container and child..... ".Please do reply Thanks in advance, KMSDXB
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10623
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9192
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.