System.Windows.Forms.Cursor.Hide()

Here are the examples of the csharp api class System.Windows.Forms.Cursor.Hide() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

63 Examples 7

1. Example

Project: InnovatorAdmin
Source File: TextArea.cs
View license
void HideMouseCursor() {
			if (Options.HideCursorWhileTyping && !this.isMouseCursorHidden && this.IsMouseOver) {
				this.isMouseCursorHidden = true;
				System.Windows.Forms.Cursor.Hide();
			}
		}

2. Example

Project: Mario-Game
Source File: FormEditor.cs
View license
private void pictureLevel_MouseEnter(object sender, EventArgs e)
        {
          
            Cursor.Hide();
        }

3. Example

Project: Mario-Game
Source File: MainForm.cs
View license
public void Init_Properties()
        {

            Width = 320;
            Height = 240  + 25;

            Cursor.Hide();


            //pBack.Left = 0;
            //pBack.Top = 0;
            //pBack.Width = pBack.Image.Width;
            //pBack.Height = pBack.Image.Height;

            pMain.Image = new Bitmap(320,240);
            pMain.Left = 0;
            pMain.Top = 0;
            pMain.Width = pMain.Image.Width;
            pMain.Height = pMain.Image.Height;


            Left = SystemInformation.PrimaryMonitorSize.Width / 2 - this.Width / 2;
            Top = SystemInformation.PrimaryMonitorSize.Height / 2 - this.Height / 2;

            Media.PlaySound(Media.SoundType.ST_level2);
        }

4. Example

Project: dx11-vvvv
Source File: WindowDisplayCursor.cs
View license
private void Control_MouseEnter(object sender, EventArgs e)
        {
            if (this.hideCursor && this.isCursorVisible)
            {
                Cursor.Hide();
                this.isCursorVisible = false;

            }
        }

5. Example

Project: Toolkit
Source File: GameWindowDesktop.cs
View license
private void HandleControlMouseEnter(object sender, System.EventArgs e)
        {
            if (!isMouseVisible && !isMouseCurrentlyHidden)
            {
                Cursor.Hide();
                isMouseCurrentlyHidden = true;
            }
        }

6. Example

Project: subtitleedit
Source File: Beamer.cs
View license
private void ButtonStartClick(object sender, EventArgs e)
        {
            if (_index >= _subtitle.Paragraphs.Count - 1)
            {
                _index = -1;
                _videoStartTick = DateTime.Now.Ticks;
            }
            else if (_index >= 0)
            {
                _videoStartTick = DateTime.Now.Ticks - ((long)(_subtitle.Paragraphs[_index].StartTime.TotalMilliseconds) * 10000); //10,000 ticks = 1 millisecond
            }

            groupBoxImageSettings.Hide();
            buttonStart.Hide();
            FormBorderStyle = FormBorderStyle.None;
            BackColor = Color.Black;
            WindowState = FormWindowState.Maximized;
            _fullscreen = true;
            pictureBox1.Image = null;
            Cursor.Hide();
            _marginBottom = Height - 200;
            timer1.Start();
        }

7. Example

Project: Gorgon
Source File: GorgonPointingDevice.cs
View license
public void HideCursor()
		{
		    if (!_cursorHidden)
		    {
		        Cursor.Hide();
		    }

		    _cursorHidden = true;
		}

8. Example

Project: JustAssembly
Source File: TextArea.cs
View license
void HideMouseCursor() {
			if (Options.HideCursorWhileTyping && !this.isMouseCursorHidden && this.IsMouseOver) {
				this.isMouseCursorHidden = true;
				System.Windows.Forms.Cursor.Hide();
			}
		}

9. Example

Project: tgc-viewer
Source File: Transformers.cs
View license
public override void Init()
        {
            Cursor.Hide();

            Device d3dDevice = D3D/n ..... /n //View Source file for more details /n }

10. Example

Project: Vocaluxe
Source File: CDrawBaseWindows.cs
View license
protected void _OnMouseEnter(object sender, EventArgs e)
        {
            Cursor.Hide();
            _Mouse.Visible = true;
            #if !WIN && !DEBUG //don't want to be stuck without a cursor when debugging
            _Form.Cursor = new Cursor("Linux/blank.cur"); //Cursor.Hide() doesn't work in Mono
            #endif
        }

11. Example

Project: bvcms
Source File: Program.cs
View license
public static void CursorHide()
		{
			if (!Program.settings.hideCursor)
				return;

			if (!cursorShowing)
				return;

			Cursor.Hide();
			cursorShowing = false;
		}

12. Example

Project: tooll
Source File: Player.cs
View license
private void ResizeHandler(Object sender, EventArgs e) {
            if (D3DDevice.SwapChain == null)
                return;

            if (D3DDevice.SwapChain.IsFullScreen) {
                Cursor.Hide();
            }
            else {
                Cursor.Show();
            }
        }

13. Example

Project: KailashEngine
Source File: Mouse.cs
View license
public void hide()
        {
            if (_locked)
            {
                System.Windows.Forms.Cursor.Hide();
            }
            else
            {
                System.Windows.Forms.Cursor.Show();
            }
        }

14. Example

Project: ContrAlto
Source File: AltoWindow.cs
View license
private void ShowCursor(bool show)
        {
            if (show == _currentCursorState)
            {
                return;
            }

            if (show)
            {
                Cursor.Show();
            }
            else
            {
                Cursor.Hide();
            }

            _currentCursorState = show;
        }

15. Example

Project: Sharp80
Source File: MainForm.cs
View license
private void UpdateDialogLevel()
        {
            if (dialogLevel < 0)
                throw new Exception("Dialog level less than zero.");

            if (suppressCursor && dialogLevel == 0)
            {
                if (!cursorHidden)
                {
                    Cursor.Hide();
                    cursorHidden = true;
                }
            }
            else if (cursorHidden)
            {
                Cursor.Show();
                cursorHidden = false;
            }
            keyboard.Enabled = dialogLevel == 0;
        }

16. Example

Project: ss13remake
Source File: MainWindow.cs
View license
private void SetupInput()
        {
            var inputPath = Path.Combine(Environment.CurrentDirectory,"GorgonInput.dll");
            _input = Input.LoadInputPlugIn(inputPath, "Gorgon.RawInput");
            _input.Bind(this);

            Cursor.Hide();

            ResizeEnd += MainWindowResizeEnd;

            _input.Mouse.Enabled = true;
            _input.Mouse.Exclusive = false;
            _input.Mouse.AllowBackground = false;
            _input.Mouse.MouseDown += MouseDownEvent;
            _input.Mouse.MouseUp += MouseUpEvent;
            _input.Mouse.MouseMove += MouseMoveEvent;
            _input.Mouse.MouseWheelMove += MouseWheelMoveEvent;

            _input.Keyboard.Enabled = true;
            _input.Keyboard.Exclusive = true;
            _input.Keyboard.KeyDown += KeyDownEvent;
            _input.Keyboard.KeyUp += KeyUpEvent;
            IoCManager.Resolve<IKeyBindingManager>().Initialize(_input.Keyboard);

            _input.Mouse.SetPositionRange(0, 0, Gorgon.CurrentClippingViewport.Width,
                                          Gorgon.CurrentClippingViewport.Height);
        }

17. Example

Project: tgc-viewer
Source File: OutRun.cs
View license
public override void Init()
        {
            var d3dDevice = D3DDevice.Instance.Device;

      /n ..... /n //View Source file for more details /n }

18. Example

Project: tgc-viewer
Source File: GUITest.cs
View license
public override void Init()
        {
            Cursor.Hide();

            Device d3dDevice = D3D/n ..... /n //View Source file for more details /n }

19. Example

Project: FieldLog
Source File: MouseFilter.cs
View license
private void HideCursor()
		{
			if (!cursorHidden)
			{
				Cursor.Hide();
				cursorHidden = true;
				if (MouseHidden != null) MouseHidden(this, EventArgs.Empty);
			}
		}

20. Example

Project: bvcms
Source File: CommonListNames.cs
View license
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            const int WM_KEYDOWN = 0x100;
            const int WM_SYSKEYDOWN = 0x104;

            if ((msg.Msg == WM_KEYDOWN) || (msg.Msg == WM_SYSKEYDOWN))
            {
                switch (keyData)
                {
                    case Keys.PageUp:
                        if (pgup.Visible)
                            ShowResults(name, prev.Value);
                        return true;
                    case Keys.PageDown:
                        if (pgdn.Visible)
                            ShowResults(name, next.Value);
                        return true;
                    case Keys.Escape:
                        Program.TimerStop();
                        if (Program.settings.hideCursor)
                            Cursor.Hide();
                        this.GoHome(string.Empty);
                        return true;
                    case Keys.S | Keys.Alt:
                        Program.TimerReset();
                        Program.CursorShow();
                        foreach (var c in sucontrols)
                        {
                            c.Enabled = true;
                            c.BackColor = Color.Coral;
                        }
                        return true;
                }
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

21. Example

Project: NVIDIASurroundToggler
Source File: SplashForm.cs
View license
private async void HiderTick(object sender, EventArgs e)
        {
            _time--;
            if (_time > 0)
            {
                lbl_message.Text = string.Format(Language.FrmSplash_Starting_in_seconds, _time);
                if (!t_hider.Enabled)
                {
                    t_hider.Start();
                }
            }
            else
            {
                Cursor.Hide();
                lbl_message.Text = Language.FrmSplash_Please_wait;
                t_hider.Stop();
                btn_options.Visible = false;
                btn_tools.Visible = false;
                if (_action != null)
                {
                    t_killer.Start();
                    try
                    {
                        await Dispatcher.CurrentDispatcher.BeginInvoke(_action, null);
                    }
                    catch
                    {
                        // ignored
                    }
                }
                Close();
            }
        }

22. Example

Project: Histacom2
Source File: WebChat1998.cs
View license
private void Chat_Tick(object sender, EventArgs e)
        {
            if (!guessing)
            /n ..... /n //View Source file for more details /n }

23. Example

Project: Tibialyzer
Source File: MapPictureBox.cs
View license
protected override void OnMouseDown(MouseEventArgs e) {
            if (e.Button == System.Windows.Forms.MouseButtons.Left) {
                this.Focus();
                drag_map = false;
                initial_position = System.Windows.Forms.Cursor.Position;
                Screen screen = Screen.FromControl(this);
                screen_center = new Point(screen.Bounds.X + screen.Bounds.Width / 2, screen.Bounds.Y + screen.Bounds.Height / 2);
                System.Windows.Forms.Cursor.Position = new Point(screen_center.X, screen_center.Y);
                center_point = new Point(screen_center.X, screen_center.Y);
                System.Windows.Forms.Cursor.Hide();
                drag_map = true;
            }
            base.OnMouseDown(e);
        }

24. Example

Project: tgc-viewer
Source File: OutRun.cs
View license
public override void Update()
        {
            PreUpdate();

            if (Input.keyPressed(K/n ..... /n //View Source file for more details /n }

25. Example

Project: xibo-dotnetclient
Source File: MainForm.cs
View license
private void MainForm_Load(object sender, EventArgs e)
        {
            // Is the mouse enabled?
            if (!ApplicationSettings.Default.EnableMouse)
                // Hide the cursor
                Cursor.Hide();

            // Move the cursor to the starting place
            if (!_screenSaver)
                SetCursorStartPosition();

            // Show the splash screen
            ShowSplashScreen();

            // Change the default Proxy class
            OptionForm.SetGlobalProxy();

            // UserApp data
            Debug.WriteLine(new LogMessage("MainForm_Load", "User AppData Path: " + ApplicationSettings.Default.LibraryPath), LogType.Info.ToString());
        }

26. Example

Project: DotSpatial
Source File: ColorLever.cs
View license
protected override void OnMouseDown(MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                // turn the mouse coordinates into a standardized orientation where the control looks like the letter D
                Point loc = ClientToStandard(e.Location);
                Rectangle knob = GetKnobBounds();
                if (knob.Contains(loc))
                {
                    _isDragging = true;
                    Cursor.Hide();
                }
            }

            base.OnMouseDown(e);
        }

27. Example

Project: WebSaver
Source File: MainForm.cs
View license
private void InitUI()
        {
            var contentFilePath = Path.Combine(content.ContentPath, Constants.ContentFilename);
            Browser.Url = new Uri(contentFilePath);

            if (startupArgs is RunArgs)
            {
                Cursor.Hide();
                Task.Run(() => { Thread.Sleep(Constants.InputDelay); input.Start(); });
            }

            Show();
        }

28. Example

Project: fdotoolbox
Source File: TextArea.cs
View license
public void SimulateKeyPress(char ch)
		{
			if (Document.ReadOnly) {
				return;
			}
			
			if (TextEditorProperties.UseCustomLine == true) {
				if (SelectionManager.HasSomethingSelected) {
					if (SelectionManager.SelectionIsReadonly)
						return;
				} else if (Document.CustomLineManager.IsReadOnly(Caret.Line, false) == true)
					return;
			}
			
			if (ch < ' ') {
				return;
			}
			
			if (!hiddenMouseCursor && TextEditorProperties.HideMouseCursor) {
				if (this.ClientRectangle.Contains(PointToClient(Cursor.Position))) {
					mouseCursorHidePosition = Cursor.Position;
					hiddenMouseCursor = true;
					Cursor.Hide();
				}
			}
			CloseToolTip();
			
			motherTextEditorControl.BeginUpdate();
			// INSERT char
			if (!HandleKeyPress(ch)) {
				switch (Caret.CaretMode) {
					case CaretMode.InsertMode:
						InsertChar(ch);
						break;
					case CaretMode.OverwriteMode:
						ReplaceChar(ch);
						break;
					default:
						Debug.Assert(false, "Unknown caret mode " + Caret.CaretMode);
						break;
				}
			}
			
			int currentLineNr = Caret.Line;
			int delta = Document.FormattingStrategy.FormatLine(this, currentLineNr, Document.PositionToOffset(Caret.Position), ch);
			
			motherTextEditorControl.EndUpdate();
			if (delta != 0) {
//				this.motherTextEditorControl.UpdateLines(currentLineNr, currentLineNr);
			}
		}

29. Example

Project: WsdlUI
Source File: TextArea.cs
View license
public void SimulateKeyPress(char ch)
		{
			if (SelectionManager.HasSomethingSelected) {
				if (SelectionManager.SelectionIsReadonly)
					return;
			} else if (IsReadOnly(Caret.Offset)) {
				return;
			}
			
			if (ch < ' ') {
				return;
			}
			
			if (!hiddenMouseCursor && TextEditorProperties.HideMouseCursor) {
				if (this.ClientRectangle.Contains(PointToClient(Cursor.Position))) {
					mouseCursorHidePosition = Cursor.Position;
					hiddenMouseCursor = true;
					Cursor.Hide();
				}
			}
			CloseToolTip();
			
			BeginUpdate();
			Document.UndoStack.StartUndoGroup();
			try {
				// INSERT char
				if (!HandleKeyPress(ch)) {
					switch (Caret.CaretMode) {
						case CaretMode.InsertMode:
							InsertChar(ch);
							break;
						case CaretMode.OverwriteMode:
							ReplaceChar(ch);
							break;
						default:
							Debug.Assert(false, "Unknown caret mode " + Caret.CaretMode);
							break;
					}
				}
				
				int currentLineNr = Caret.Line;
				Document.FormattingStrategy.FormatLine(this, currentLineNr, Document.PositionToOffset(Caret.Position), ch);
				
				EndUpdate();
			} finally {
				Document.UndoStack.EndUndoGroup();
			}
		}

30. Example

Project: tooll
Source File: Player.cs
View license
public bool Initialize(ContextSettings settings)
        {
            Logger.Info("Initializing .../n ..... /n //View Source file for more details /n }

31. Example

Project: tao
Source File: Lesson01.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

32. Example

Project: tao
Source File: Lesson02.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

33. Example

Project: tao
Source File: Lesson03.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

34. Example

Project: tao
Source File: Lesson04.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

35. Example

Project: tao
Source File: Lesson05.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

36. Example

Project: tao
Source File: Lesson06.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

37. Example

Project: tao
Source File: Lesson07.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

38. Example

Project: tao
Source File: Lesson08.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

39. Example

Project: tao
Source File: Lesson09.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

40. Example

Project: tao
Source File: Lesson10.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

41. Example

Project: tao
Source File: Lesson11.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

42. Example

Project: tao
Source File: Lesson12.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

43. Example

Project: tao
Source File: Lesson13.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

44. Example

Project: tao
Source File: Lesson14.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

45. Example

Project: tao
Source File: Lesson15.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

46. Example

Project: tao
Source File: Lesson16.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

47. Example

Project: tao
Source File: Lesson17.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

48. Example

Project: tao
Source File: Lesson18.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

49. Example

Project: tao
Source File: Lesson19.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }

50. Example

Project: tao
Source File: Lesson20.cs
View license
private static bool CreateGLWindow(string title, int width, int height, int bits, bool fullscreenfla/n ..... /n //View Source file for more details /n }