Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Custom control Designer using UltraPanel
posted

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");

}

}

}

Parents Reply Children
No Data