Completed
Last Updated: 10 Sep 2015 08:19 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 04 Aug 2015 08:40
Category: Dock
Type: Bug Report
0
FIX. RadDock - ArgumentOutOfRangeException when a MDI child form is shown
To reproduce:

1.Add a RadForm with RibbonFormBehavior.
2.Add a RadDock with one DocumentWindow and a button inside the ribbon.
3.Create another RadForm with RibbonFormBehavior.
4.Use the following code snippet:

public partial class Form1 : RadForm
{
    public Form1()
    {
        InitializeComponent();
    }

    private void radButtonElement1_Click(object sender, EventArgs e)
    {
        this.IsMdiContainer = true;
        this.radDock1.AutoDetectMdiChildren = true;
        
        ChildForm form = new ChildForm();
        form.Text = "MDI Child 1"; 
        form.MdiParent = this;
        form.Show();
       
    }
}

Workaround: Set RadDock.AutoDetectMdiChildren property to false.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments