Width Issue

2 posts, 1 answers
  1. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 14 Apr 2009 Link to this post

    I have an application that uses floating dockpanels.

    I have noticed that there seems to be a maximum width equal to the screen resolution width even when
    I have not set any maximum or minimum values for the size of the dockpanel window.

    I assume this is a built in behavior ? I have tested at multiple resolutions and get the same result.
    Is there a way to override this behavior ?
  2. Answer
    Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 17 Apr 2009 Link to this post

    Hi Kenneth,

    Form class limits the size of the form to be not larger then the screen size. It is done in Form SetBondsCore override and unfortunately cannot be changed. To be precise it is limited by the size in
    SystemInformation.MaxWindowTrackSize. For the latter, one can read in MSDN :

    "...The value returned by MaxWindowTrackSize refers to dimensions of the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A Form can override this value by overriding the MaximumSize property..."

    One can set Form MaximumSize to be smaller, but not larger than MaxWindowTrackSize.

    I hope this helps. Should you have any other questions, feel free to ask.

    Sincerely yours,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top