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

UserControl with RadLayoutControl will crash if trying to add more controls

1 Answer 96 Views
LayoutControl
This is a migrated thread and some comments may be shown as answers.
Vincent F
Top achievements
Rank 1
Vincent F asked on 02 Jan 2016, 01:17 PM

Hi,

 If I place a RadLayoutControl into a UserControl, then trying to add any toolbox controls into it,

Visual Studio will crash.

 Using Visual Studio 2013 Update 4

Telerik Winforms version: 2015.2.728.40

If I place RadLayoutControl into a WinForm/RadForm, then try to add controls into it will be fine.

 Looks like the RadLayoutControl needs to reside in a form instead of UserControl? Don't know this is a bug or it is meant to be.

What I'm trying to do is design UserControls which can be loaded into RadDock's document windows at runtime. 

 

Best Regards,

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Jan 2016, 09:44 AM
Hello Vincent, 

Thank you for writing.

This is a known issue which is resolved in the latest version. The issue details are located here: FIX. RadLayoutControl - Visual Studio crash when one adds a control to RadLayoutControl which is contained in a custom user control.

To workaround this with the old version you can use a form instead of user control. The following article shows how you can add the form to a dock window: Dock a form.

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik

Tags
LayoutControl
Asked by
Vincent F
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or