예제 #1
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            ViewAllUI obj = new ViewAllUI();

            // obj.Hide();
            obj.Show();
            // showOnMonitor2();
        }
예제 #2
0
        private void showOnMonitor2()
        {
            Screen[] sc;
            sc = Screen.AllScreens;
            //get all the screen width and heights
            ViewAllUI f = new ViewAllUI();

            f.FormBorderStyle = FormBorderStyle.None;
            f.Left            = sc[1].Bounds.Width;
            f.Top             = sc[1].Bounds.Height;
            f.StartPosition   = FormStartPosition.Manual;
            f.Location        = sc[1].Bounds.Location;
            Point p = new Point(sc[1].Bounds.Location.X, sc[1].Bounds.Location.Y);

            f.Location    = p;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }