using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace UAS_MES_NEW.CustomControl.BaseForm { public partial class BaseForm : Form { public BaseForm() { InitializeComponent(); } private void BaseForm_Load(object sender, EventArgs e) { if (!DesignMode) { Main main = Application.OpenForms["Main"] as Main; main.TopMost = false; } } private void BaseForm_FormClosing(object sender, FormClosingEventArgs e) { if (!DesignMode) { //Main main = Application.OpenForms["Main"] as Main; //main.TopMost = (main.Controls["headBar1"].Controls["AlwaysTop"] as CheckBox).Checked; } } } }