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

MDI Forms and child form height and width properties

Hi folks.

I've created an MDI form. In this form there are several panels, and
several splitters. There is a vertical panel docked on the left, and 2
horizontal panels docked on the top and bottom. This leaves an area (right
side, middle area) of the form available to load/unload other forms. I
don't want these other forms to have Max/Min/Close buttons, so I set the
"FormBorderStyle" Property equal to "None" on those forms that will be
loaded.

My question is, how can I either get the size of the working area left on
the MDI Parent form dynamically, or how can I automatically size whatever
child forms are loaded in that area not to be smaller or larger than the MDI
working area? (See Below)

============================
= = Panel
= P ======================
= A = =
= N = =
= E = Place where =
= L = child forms =
= = loaded =
= = =
= ======================
= = Panel
============================

Thanks,

-Tygre
Nov 20 '05 #1
3 5273

"OpticTygre" <op********@adelphia.net> wrote in message
news:qb********************@adelphia.com...
I've created an MDI form.


Given what you're trying to do, I would say this was your first mistake. MDI
was not designed to behave the way you're trying to make it behave. You'll
bang your head against a wall trying to fight MDI. I would recommend that
you create UserControls to use as your "child forms."
Nov 20 '05 #2
Good suggestion, but I think that would also be more of a pain than it's
worth. The idea is having a treeview control on the left side, and
depending on what node is clicked, having options appear on the right side
(where the child forms would be loaded). I figured having separate forms
for each set of options would be easier than having a normal form with
panels and options that I'd have to set to visible and invisible each time a
node is clicked. Something like that is a pain to design, as you have to
drop controls on top of eachother, set tags, etc... It makes the design of
the form quite a mess. Any other suggestions of doing something like this?

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...

"OpticTygre" <op********@adelphia.net> wrote in message
news:qb********************@adelphia.com...
I've created an MDI form.
Given what you're trying to do, I would say this was your first mistake.

MDI was not designed to behave the way you're trying to make it behave. You'll
bang your head against a wall trying to fight MDI. I would recommend that
you create UserControls to use as your "child forms."

Nov 20 '05 #3

"OpticTygre" <op********@adelphia.net> wrote in message
news:_P********************@adelphia.com...
Good suggestion, but I think that would also be more of a pain than it's
worth. The idea is having a treeview control on the left side, and
depending on what node is clicked, having options appear on the right side
(where the child forms would be loaded). I figured having separate forms
for each set of options would be easier than having a normal form with
panels and options that I'd have to set to visible and invisible each time a node is clicked. Something like that is a pain to design, as you have to
drop controls on top of eachother, set tags, etc... It makes the design of the form quite a mess. Any other suggestions of doing something like

this?

Nope. Any time people describe this sort of app and ask to do it with MDI
the general response is "don't use MDI." This is basically an Outlook-style
application.

You know, you can load UserControls dynamically with Reflection. If you
implement a common interface then you can talk to them from your main form
as well.
Nov 20 '05 #4

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

Similar topics

0
by: mark | last post by:
Here's the most concise description I can give you of my problem... I'm trying to create a narrow form in Visual Basic.NET 2003. The form is about 95 pixels wide by 325 long. I resized it to...
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
6
by: Ty Salistean | last post by:
I have a form that I inherited from System.Windows.Forms. I use that form everywhere in my system. I went back to my base class form and changed the size, expecting all of my children forms to...
4
by: mark | last post by:
Here's the most concise description I can give you of my problem... I'm trying to create a narrow form in Visual Basic.NET 2003. The form is about 95 pixels wide by 325 long. I resized it to...
0
by: Henry Wu | last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or Non-MDI Child Forms, if one tries to set the opacity or transparencykey property to a MDI-Child form, it will have no effect....
14
by: bwadley | last post by:
Hi, Im fairly new to VB.NET and am hoping someone can help me with what is probably a simple problem. I have an MDI app, when I open a child form, I want it centered to the parent. So I put...
8
by: Tony K | last post by:
How do you maximize a child form when you show the child form. My resolution on my screen is 1440 x 900. My parent form maximizes just fine, but when I show a child form it doesn't maximize. It...
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...
5
by: ankit1999 | last post by:
I have a problem, everytime i'm run this page http://click2travel.in/index.php i get the this error,,,
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?
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:
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
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
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...

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.