RadForm on dual screen monitor bleeding into next screen when maximized

6 posts, 0 answers
  1. James
    James avatar
    22 posts
    Member since:
    Jun 2014

    Posted 03 Feb 2015 Link to this post

    I have a Main form that is maximized by default.
    I changed the inheritance of my Main form to now inherit from  RadForm.
    Now when I open the Main form on my left monitor then the Main form has a small edge on the right that is bleeding into the left side of the right monitor.
    See attachment for better explanation.
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 06 Feb 2015 Link to this post

    Hi James,

    Thank you for writing.

    I was able to reproduce the observed issue. I have logged it in our Feedback Portal. You can track the item for status changes and add your vote for it here.
    To workaround this you can set the MaximumSize of the form:
    var screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
     
    this.MaximumSize = new Size(screen.Width, screen.Height);

    Your Telerik Points have been updated for this report.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. James
    James avatar
    22 posts
    Member since:
    Jun 2014

    Posted 06 Feb 2015 in reply to Dimitar Link to this post

    I'm not sure how to implement your work around. 
    I don't know the users screen size so I can't set the "screen.Width, screen.Height".
  5. James
    James avatar
    22 posts
    Member since:
    Jun 2014

    Posted 06 Feb 2015 in reply to James Link to this post

    Oh the code you gave me does give me some information but it does not work correctly.
    When maximized the right side of the form is cut off several pixels and it show double close buttons.

    See attachment.
  6. James
    James avatar
    22 posts
    Member since:
    Jun 2014

    Posted 06 Feb 2015 in reply to James Link to this post

    So if I set the following for a 1920 x 1080 screen then it fits the working area but the title bar does not expand correctly.
    I have to set the "Width" 8 pixels more than the screen size to get the working area to fit.

    Me.MaximumSize = New Size(1928, 1080)
  7. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 10 Feb 2015 Link to this post

    Hello James,

    Thank you for writing.

    I can confirm that the below window can be seen when the maximum size is set to the screen width. For now you can just keep using your approach and manually add 8 pixels.

    Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready