private void SuccessLogin()
        {
            if (label4.Text.ToUpper().CompareTo("LOGIN SUCCESSFULLY".ToUpper()) == 0)
            {
                if (!textBox1.AutoCompleteCustomSource.Contains(textBox1.Text))
                {
                    function.set_user_name(false, textBox1.Text);
                }



                //this.ActiveForm.Hide();
                this.Dispose(false);
                //LAQ.Form1 f = new Form1();
                //LAQ.Main_Form f1 = new Main_Form();
                timer1.Enabled = false;
                timer2.Enabled = false;
                timer3.Enabled = false;
                FRM_MAIN f1 = new FRM_MAIN();
                f1.Show();
                //f.Show();
            }
            else
            {
                timer1.Enabled = false;
                panel2.Enabled = true;
                panel1.Visible = false;
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            if (label4.Text.ToUpper().CompareTo("LOGIN SUCCESSFULly".ToUpper()) == 0)
            {
                if (!textBox1.AutoCompleteCustomSource.Contains(textBox1.Text))
                {
                    function.set_user_name(false, textBox1.Text);
                }



                Form.ActiveForm.Hide();
                //LAQ.Form1 f = new Form1();
                //LAQ.Main_Form f1 = new Main_Form();
                timer1.Enabled = false;
                timer2.Enabled = false;
                timer3.Enabled = false;
                FRM_MAIN f1 = new FRM_MAIN();
                f1.Show();
                //f.Show();
            }
            else
            {
                timer1.Enabled = false;
                panel2.Enabled = true;
                panel1.Visible = false;
            }
        }
        private void kryptonButton3_Click(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            timer2.Enabled = false;

            Form.ActiveForm.Hide();
            //LAQ.Form1 f = new Form1();
            //LAQ.Main_Form f1 = new Main_Form();

            FRM_MAIN f1 = new FRM_MAIN();

            f1.Show();
        }