Unplanned
Last Updated: 16 Feb 2024 09:24 by ADMIN
TestTeam
Created on: 16 Feb 2024 09:08
Category: Form
Type: Bug Report
2
RadForm: Size is changed after minimizing the form in MDI scenario where RadForm is child of another child form
Good morning,

when I open a mdi child form from another child form and change WindowState from Minimize to Normal the form is not shown with correct size.
Attached Files:
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 16 Feb 2024 09:24

Hello, Carlo,

Thank you for reporting this. You can use the following workaround:

 public FrmVisita()
 {
     InitializeComponent();
     this.Shown += FrmVisita_Shown;
     this.Activated += FrmVisita_Activated;
 }
 Size sizeNormal;
 private void FrmVisita_Activated(object? sender, EventArgs e)
 {
     if (this.WindowState == FormWindowState.Minimized)
     {
         this.WindowState = FormWindowState.Normal;
         this.Size = sizeNormal;
     }
 }

 private void FrmVisita_Shown(object? sender, EventArgs e)
 {
     sizeNormal = this.Size;
 }

I hope this helps. If you have any other questions do not hesitate to contact us. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.