954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MDI child controlBox

Hello every1, my problem is how to remove controlBox of MDI child.
i mean that i already set MDI child:
ControlBox to False
minimizeBox to false
MaximizeBox to flase
set windowstate to maximized
formborderstyle to fixed3d

When i open the form in MDI Parent, all the button minimize, maximize, exit appear
Here's a preview:

MDIPARENT - [MDIChild]-->___________ - []X
MDIChild -----> ____________________- []X (This is the part that i want to remove)

hope understanding

Please help
thanks

manutd4life
Junior Poster
123 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

Set Following properties:
Form2 is a MDI Parent form so set

IsMdiContainer = True


Form3 is Child

Form3.ControlBox = False
        Form3.MaximizeBox = False
        Form3.MinimizeBox = False
        Form3.MdiParent = Form2  ' or Me
        Form3.Show()
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

still the same. It show the controlbox again

manutd4life
Junior Poster
123 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

Will you post the section of code you wrote?

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 
frmWatch.ControlBox = False
        frmWatch.MaximizeBox = False
        frmWatch.MinimizeBox = False
        frmWatch.MdiParent = Me
        frmWatch.Show()
manutd4life
Junior Poster
123 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

We are missing something? I am attaching code.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

but the windowstate is not maximize

manutd4life
Junior Poster
123 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

only setting the control box to false should solve the problem

babbu
Posting Whiz in Training
208 posts since Jun 2009
Reputation Points: -1
Solved Threads: 23
 

i already try not working, may be there is no solution.

manutd4life
Junior Poster
123 posts since Dec 2007
Reputation Points: 10
Solved Threads: 1
 

Do not set windowstate property for child window.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You