I've been trying to take an NForm and get it to work inside a docking panel (using Nevron 11.1.17.12). Things work as expected on Win7 but I'm having issues on WinXP. I've got code like the following which modifies an existing NForm to prepare it:
private void prepFormForPanel(NForm frm){
frm.Anchor =
AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;frm.FormBorderStyle =
FormBorderStyle.None;frm.TopLevel =
false;frm.MaximizeBox =
false;frm.MinimizeBox =
false;frm.StartPosition =
FormStartPosition.Manual;frm.Location =
new Point(0, 0);// FrameAppearance has to be set for XP to not show borderNFrameAppearance frameAppearance = new NFrameAppearance();frameAppearance.BottomBorder = 0;
frameAppearance.LeftBorder = 0;
frameAppearance.RightBorder = 0;
frameAppearance.CaptionHeight = 0;
frameAppearance.ButtonSize =
Size.Empty;frm.FrameAppearance = frameAppearance;
frm.Visible =
true;}
On XP, though the frame is not showing (due to the frm.FrameAppearance change which I found via the forum on another thread) the NForm layout is not utilizing the space where the frame was completely. There's lots of extra white space on the bottom and the right inside the panel instead of the controls on the form filling the space through their anchor layout property.
If I instead use a Form (instead of an NForm) I don't have this problem but I lose the skin/palette/frame customizations that the NForm receives.
What's the recommended properties on an NForm being added to a docking panel for any OS?