Hi,
I have a couple of custom controls which I am looking to create Designers for. I want to be able to drag and drop controls on to UltraPanel(s) contained with in the custom controls, can someone give me the code to do this. I have tried the following but it does not seam to work as the controls are not added to the ClientArea.
namespace DesignTestForm
{
public class CheckBoxGroupBoxDesigner : ParentControlDesigner
public CheckBoxGroupBoxDesigner()
}
public override void Initialize(IComponent component)
base.Initialize(component);
CheckBoxGroupBox checkBoxGroupBox = Control as CheckBoxGroupBox;
if (checkBoxGroupBox == null)
return;
UltraPanelClientArea ultraPanelClientArea = checkBoxGroupBox.ClientArea;
EnableDesignMode(ultraPanelClientArea, "ClientArea");
I'm not sure if this is possible, but can you clarify a little about your custom control? Is this a UseControl with an UltraPanel on it? Or is it a control that derives from UltraPanel?
They are a controls derived from UserControl with a UltraPanel(s) as child on it.