Set AutoScrollMinSize could raise a bug? |
Post Reply |
Author | |
wb197
Newbie Joined: 07 June 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 09 April 2008 at 11:03am |
I have a Form embedded in Docking Pane. If I set the AutoScrollSize of the form, after I resize the pane size smaller than the minimal size, the pane size will be locked, which means I cannot drag the pane size.
I don't know if I miss anything?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
First, what do you mean with: AutoScrollSize of the form? Is it a property in C#?
Did you set the min and max panesize?
You can set the min and max pane size with:
pane.MinTrackSize.SetSize 100,100
pane.MaxTrackSize.SetSize 100,100
if you set both values to same width/height you can't resize the pane!
btw it shouldn't be possible to resize the pane smaller than value of MinTrackSize.
|
|
wb197
Newbie Joined: 07 June 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
oh, yes, I'm in C#. I didn't set the pane size property. I just set the form size.
It seems resizing pane size will affect the form size.
And the locking feature only occurs after the scrollbar shown.
I'll try set pane.MinTrackSize and pane.MaxTrackSize properties.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
When attaching a form or picturebox to a pane the contents of the pane will be resized to the size of the pane. If you want to set a minimum/maximum for the form/picturebox you can set the min/maxTrackSize.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |