Esempio n. 1
0
        public void open_frm_popup(EventArgs e)
        {
            Form       formbk = new Form();
            frm_SEARCH frmsh  = new frm_SEARCH();

            try
            {
                using (AT2 uu = new AT2())
                {
                    formbk.StartPosition   = FormStartPosition.Manual;
                    formbk.FormBorderStyle = FormBorderStyle.None;
                    formbk.Opacity         = .50d;
                    formbk.BackColor       = Color.Black;
                    formbk.Size            = this.Size;
                    formbk.TopMost         = true;
                    formbk.Location        = this.Location;
                    formbk.ShowInTaskbar   = false;
                    formbk.Show();
                    uu.Owner = formbk;
                    uu.ShowDialog();
                    formbk.Dispose();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                formbk.Dispose();
            }
        }
Esempio n. 2
0
        private void BunifuButton2_Click(object sender, EventArgs e)
        {
            Form       formbk = new Form();
            frm_SEARCH frmsh  = new frm_SEARCH();

            try
            {
                using (test_Form1 uu = new test_Form1())
                {
                    formbk.StartPosition   = FormStartPosition.Manual;
                    formbk.FormBorderStyle = FormBorderStyle.None;
                    formbk.Opacity         = .50d;
                    formbk.BackColor       = Color.Black;
                    formbk.Size            = this.Size;
                    //formbk.WindowState = FormWindowState.Maximized;
                    formbk.TopMost       = true;
                    formbk.Location      = this.Location;
                    formbk.ShowInTaskbar = false;
                    formbk.Show();
                    uu.Owner = formbk;
                    uu.ShowDialog();
                    formbk.Dispose();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            finally
            {
                formbk.Dispose();
            }
        }
Esempio n. 3
0
        private void BunifuImageButton2_Click(object sender, EventArgs e)
        {
            var form_search_Employer = new frm_SEARCH();

            form_search_Employer.Closed += (s, args) => this.Close();
            this.Hide();
            form_search_Employer.Show();
        }