Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
19
Reply
Disable MaximizeBox and MinimizeBox for MDI Child Form
eddom
Mar 30 2011 6:27 AM
9.3k
I can't disable the maximize and minimize box without setting ControlBox = False when the child form is maximized, anyone know the workaround for this?
I have set the mdi child form property as below:
FormBorderStyle = FixedSingle
ControlBox = True
MaximizeBox = False
MinimizeBox = False
WindowState = Maximized
I am able to fix this by doing the following:
ChildForm.WindowState = Normal;
ChildForm.MDIParent = this;
ChildForm.Show();
ChildForm.WindowState = Maximized;
what happen was, when I open 2nd child form, the minimized box enabled again....
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
19
)
Get the same output of the window in PDF file
The type or namespace name 'CrystalDecisions' could not be found