private void btn_getMonitor_Click(object sender, EventArgs e) { //MessageBox.Show(DisplayConfiguration.GetCurrentMonitor().ToString()); foreach (DisplayConfiguration.PHYSICAL_MONITOR physicalMonitor in physicalMonitors) { Console.WriteLine(DisplayConfiguration.GetMonitorCapabilities(physicalMonitor)); Console.WriteLine(physicalMonitor.hPhysicalMonitor.ToInt32()); //DisplayConfiguration.SetMonitorBrightness(physicalMonitor, brightnessSlider.Value / brightnessSlider.Maximum); } }
public CSGSITools_Form() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(0, 0, Width, Height, 5, 5)); lbl_currentMap.Visible = false; lbl_CTRounds.Visible = false; lbl_TRounds.Visible = false; lbl_playerstate.Visible = false; lbl_currentRoundState.Visible = false; cb_Alertsounds.SelectedIndex = 0; cb_focus.SelectedIndex = 0; combo_states.SelectedIndex = 8; TrolhaTimer.Tick += TrolhaTimer_Tick; lbl_version.Text = Program.Version; physicalMonitors = DisplayConfiguration.GetPhysicalMonitors(DisplayConfiguration.GetCurrentMonitor()); }