I have created a mdi parent form and a mdi child. i have set the properties of the mdi child:
WindowState = Maximized
MaximizeBox = false
MinimizeBox = false
When i open the form child it is not in its Maximized size but in its normal size, yet the minimize, restore and close buttons are in the top below the menu bar of the parent form. The button minimize is disabled but not the restore button.
When i open a second child form (another instance of the form child) it´s opened in a maximized state and size too but with the buttons in the same state as the first child form.
When i open a third form (maximized) and i close it again the se secon form is restored to its normal size.
What i want is to open the mdi childs always in maximized state, the button restore always to be deactivated and when i close the top child form the others that are open not to be restored to they normal size.
Can anyone help me?
Thank you.
CoderPosted Jul 29, 2008, 5:41 AM
Thank you for your reply. I have already done that. The problem is that i want the mdi child to be opened im maximized state, for that i have to alter the properties of the mdi child form. As i said when i open the child form it is not opened in its full size but normal size yet it seems it is assuming that is in maximized state.
I can solve this problem defining the property in the load event of the form (but the restore button is actived which i dont want). But when i open more than one mdi chil (all in maximized state) and then i close the last one the others are restored to their normal size.
ved shamaPosted Jul 29, 2008, 5:28 AM
hi take a mdi form then u got all the code realated to cascading and other windows and u can see tooltip and menu's code also
Ved Sharma