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

Problem with mdi child forms

SpeedJunkie
Hi,
I have 2 child forms. User can maximize one child form and he's not allowed to maximize the second child form.
Now i am facing a problem, when one child form is already open and is in maximized state the form which user is not allowed to maximized is also getting opened in maximized state.

I have tried opening the 2nd form by setting the form window state to normal but to no avail.
Apr 6 '09 #1
6 4234
Plater
7,872 Expert 4TB
Does supplying a maximumsize to the child form that shouldn't be maximized help?

Have you tried handling the form resize events?
I think you can check to see if the form is being "maximized" and prevent the event from happening?
Apr 6 '09 #2
My problem is something else.
I have 2 forms in my application say Form1 and Form2.
User can not maximize Form2 and i have made formborderstyle as FixedDialog.
Now let's say user has opens form1 and maximizes it, now when he opens form 2 it also opens in maximized state.I don't want to let this happen. I want that the Form2 should open in size that i specified in the design time.
I hope I making some sense.
Apr 8 '09 #3
Plater
7,872 Expert 4TB
Hmm I have never run into this problem with non mdi-forms. My forms open up at the correct size.
Is there a reason you have made them MDI children and not just opened them?
Maybe you can get away with non-mdi forms?
Pretty sure its a property of being an MDI child to take on similar behavior as a previous child. Like the way ms office product work. If you use ctrl+tab to cycle through children. If one child is "maximized", regardless of the previous states of the other children, the next child will also be maximized.
Apr 8 '09 #4
Thnx for your reply Plater...
Yes you are right there, if the forms are not mdiChild you would not face this problem.
I don't want to make my forms non mdiChild 'coz then they show independent of the main form.
Right now, as a temp fix when i open Form two i check if active child is maximized if yes then i make the window state as normal and then open Form 2. But then this does not look very good to users as Form1 resizes and looks kinda irritating to user.
I was wondering if there is any way that Form1 stays maximized and Form2 is in the normal size.....
Apr 9 '09 #5
Plater
7,872 Expert 4TB
Pretty sure there isn't as long as they are both children of the same parent.
Apr 9 '09 #6
Thnx anyway Plater....
Apr 13 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DataB | last post by:
Hi everyone! I have a forms problem. Bakground: I have created a number of tables. Of these, I have a main parent table (Personal Details) and a number of other child tables (Tax file No.,...
11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
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: Maheshkumar.R | last post by:
Hi groups, How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT. Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
1
by: Benz. | last post by:
Hello all, I'm having a very strange problem. I've an MDI application with many child forms. In 1 of my Child forms (Say frmA), I've a few design time controls. The forms Autoscroll property is...
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...
0
by: Bruin | last post by:
Hi All, I'm having a problem with MDI child forms when the reference to the MDI Parent is set in a Control library. (Sorry for the long post) I have an control library assembly which holds all...
0
by: Amiram Korach | last post by:
When you create a MDI form, you can attach a main menu to the parent and to the child. When a child form is active, its menu is merged with the parent menu. The problem is: when the forms are...
3
by: Tom | last post by:
I am having a serious issue with my MDI child windows. This is with a large VB.NET application that I ported over to VS 2005 from VS 2003. The problem is that, if the child window is maximized and...
0
by: =?Utf-8?B?ZGV0cml1czY3?= | last post by:
I'm having a problem in C# (visual studio 2005) concerning minimising parent and child forms. I need to be able to handle the minimise event for the child and tell the parent to minimise at the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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
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...

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.