public void selfformOpen() { selfform = new SelfForm(); selfform.TopLevel = false; selfform.Parent = dockingPannel; selfform.FormBorderStyle = FormBorderStyle.None; selfform.StartPosition = FormStartPosition.CenterParent; selfform.Show(); }
public void CloseForm() { if (testform != null) { testform.Close(); testform.Dispose(); testform = null; } if (passwordform != null) { passwordform.Close(); passwordform.Dispose(); passwordform = null; } if (logform != null) { logform.Close(); logform.Dispose(); logform = null; } if (optionform != null) { optionform.Close(); optionform.Dispose(); optionform = null; } if (selfform != null) { selfform.Close(); selfform.Dispose(); selfform = null; } if (specform != null) { specform.Close(); specform.Dispose(); specform = null; } }