This is a migrated thread and some comments may be shown as answers.

RadForm on dual screen monitor bleeding into next screen when maximized

5 Answers 138 Views
Form
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 03 Feb 2015, 09:59 PM
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.

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Feb 2015, 02:23 PM
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.

 
0
James
Top achievements
Rank 1
answered on 06 Feb 2015, 02:26 PM
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".
0
James
Top achievements
Rank 1
answered on 06 Feb 2015, 02:52 PM
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.
0
James
Top achievements
Rank 1
answered on 06 Feb 2015, 03:15 PM
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)
0
Dimitar
Telerik team
answered on 10 Feb 2015, 01:42 PM
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.

 
Tags
Form
Asked by
James
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
James
Top achievements
Rank 1
Share this question
or