private void ShowControl(IOptions options) { if (PlMisc.InvokeRequired) { PlMisc.Invoke(new RelayoutHandler(ShowControl), new object[] { options }); } else { PlMisc.Controls.Clear(); UserControl uc = options.GetControl(); uc.AutoSize = true; uc.Dock = DockStyle.Fill; uc.Location = new System.Drawing.Point(0, 0); uc.Size = new System.Drawing.Size(272, 26); uc.TabIndex = 1; PlMisc.Controls.Add(uc); } }