Print Page | Close Window

Set AutoScrollMinSize could raise a bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10161
Printed Date: 04 May 2024 at 7:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set AutoScrollMinSize could raise a bug?
Posted By: wb197
Subject: Set AutoScrollMinSize could raise a bug?
Date 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?
 
 



Replies:
Posted By: Aaron
Date Posted: 09 April 2008 at 4:04pm
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.


Posted By: wb197
Date Posted: 10 April 2008 at 1:31am

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.
 


Posted By: Aaron
Date Posted: 10 April 2008 at 11:11am
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net