I can't seem to get my paletteset to start up in any location but docked on the left.
I've tried setting the Location property, the Dock property (see below) and many other combinations.
I would like it to start as a floating paletteset.
I found other posts regarding this issue but the solution was a workaround that didn't make sense. I am hoping that there is a better answer. Do you have it?
[code]
static PaletteSet ps;
public static void ShowPalette()
{
//
if (ps == null)
{
ps = new PaletteSet("Finishes");
ps.Style = PaletteSetStyles.ShowCloseButton |
PaletteSetStyles.Snappable |
PaletteSetStyles.ShowCloseButton |
PaletteSetStyles.ShowAutoHideButton;
ps.MinimumSize = new System.Drawing.Size(420, 320);
ps.Add("Finishes", new uControlAssign());
ps.Dock = DockSides.None;
}
ps.Visible = true;
}
[/code]
It must be one of two things:
1. It is really simple and I'm a fool for not seeing it.
2. It is really simple but there is a bug so it doesn't work like you would expect.
Either way I'm going to hate the answer.
CAD Programming Solutions