void SetFormStyles() { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Opacity = s.CursorIndicatorOpacity; NativeMethodsGWL.ClickThrough(this.Handle); NativeMethodsGWL.HideFromAltTab(this.Handle); UpdateSize(); UpdatePosition(); }
void ActivateDisplayOnlyMode(bool force) { if (SettingsModeActivated || force) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Opacity = settings.Opacity; NativeMethodsGWL.ClickThrough(this.Handle); NativeMethodsGWL.HideFromAltTab(this.Handle); moveresize_MouseUp(null, null); // disable all dragging this.bn_close.Visible = false; this.bn_resize.Visible = false; this.bn_settings.Visible = false; this.panel_textposhelper.Visible = false; SettingsModeActivated = false; settings.SaveAll(); } }