C#.NET
windwos 창 전체화면으로 띄우기
스티커
2010. 7. 13. 10:42
전체화면 창 띄우기
public MainWindow() { InitializeComponent(); WindowState = System.Windows.WindowState.Maximized; }
해상도 구하기 /듀얼 모니터 구분
fullScreenWindow.WindowStartupLocation = WindowStartupLocation.Manual; Debug.Assert(System.Windows.Forms.SystemInformation.MonitorCount > 1); System.Drawing.Rectangle workingArea = System.Windows.Forms.Screen.AllScreens[1].WorkingArea; //듀얼모니터구분 fullScreenWindow.Left = workingArea.Left; fullScreenWindow.Top = workingArea.Top; fullScreenWindow.Width = workingArea.Width; fullScreenWindow.Height = workingArea.Height; fullScreenWindow.WindowState = WindowState.Maximized;//전체화면 fullScreenWindow.WindowStyle = WindowStyle.None; //테두리 없애기 fullScreenWindow.Topmost = true; fullScreenWindow.Show();