private void Form7_Load(object sender, EventArgs e) { Auto_Class Auto_class = new Auto_Class(); Auto_class.Change_Font(new Label[] { label1 }); Auto_class.Change_Font(new Button[] { button1, button2 }); }
private bool Is_Active_Form(Form form) { try { if (Auto_Class.GetForegroundWindow() != form.Handle) { return(true); } else { return(false); } } catch { return(false); } }