วันอังคารที่ 14 สิงหาคม พ.ศ. 2561

C# show form2 in secondary monitor

            Form2 dlg = new Form2();
            Screen[] screens = Screen.AllScreens;
            Rectangle bounds = screens[1].Bounds;
            dlg.SetBounds(bounds.X, bounds.Y, bounds.Width, bounds.Height);
            dlg.StartPosition = FormStartPosition.Manual;
            dlg.Show();