Can't delete objects from GoPalette

Hello again!

I am unable to delete/edit objects in my GoPalette.

public partial class Form1 : Form
{
private GoView view;
private GoPalette palette;

    public Form1()
    {
          InitializeComponent();
          InitGoObjects();
          Controls.Add(view);
    }

    private void InitGoObjects()
    {
          view = new GoView();
          view.Dock = DockStyle.Fill;
          palette = new GoPalette();
          palette.Dock = DockStyle.Fill;
          view.Controls.Add(palette);

          GoText gt = new GoText();
          gt.Text = "foo";
          palette.Document.Add(gt);
    }
}

What am I missing?

Thanks in advance.

Pradip

By default GoPalette has the AllowDelete property set to false. Most applications typically want their palettes to be read-only, except maybe in a special palette-modifying mode. So the GoPalette constructor calls SetModifiable(false).
Note that all those Allow… properties just govern what users can do. Programmatically there’s never any restriction on your ability to modify any GoDocument, including removing objects.