Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows Forms MDI
Hi all,
 
I have an MDI Child in which I was assigning its minimum size so the user couldn't resize it smaller than the minimum size already assigned, but the MDI parent can have a smaller size.
 
I want to show an auto scroll if the MDI Parent has a size less than The MDI Child size, but I found that the MDI container can't have an auto scroll property true.
 
So please what can I do ?
 
Thanks in advance,
Smile | :)
Posted 4-Sep-11 2:09am
Edited 4-Sep-11 22:37pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You could set the Form.Autoscroll property[^]...
  Permalink  
Comments
Michael Waguih at 4-Sep-11 7:30am
   
For sure I know this property but It doesn't work with the MDI Container property assigned.
MaulikDusara at 5-Sep-11 4:14am
   
correct.
Michael Waguih at 7-Sep-11 7:54am
   
So please is there any way to fix it ?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

When u check MDI forms property .there is an option Autoscroll property by default =False u must change the property False into true.
  Permalink  
Comments
Michael Waguih at 7-Sep-11 7:44am
   
For sure I have done this but when I change the autoscroll property to true automatically it sets the MDI container property to false
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I know this is old, but the answer is to set the MDI Parent as such, and the MDI Child Form to AutoScroll = true. I just had the same problem, this was what worked for me.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,142
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 23 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100