[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-winforms-list
Subject: Re: [Mono-winforms-list] How Can I Hide Mouse Cursor ???
From: Jonathan Pobst <monkey () jpobst ! com>
Date: 2008-05-28 18:39:43
Message-ID: 483DA6EF.8050606 () jpobst ! com
[Download RAW message or body]
If this works on .Net and does not work on Mono, please file a bug with
your test case in our bugzilla:
http://www.mono-project.com/Bugs
Thanks!
Jonathan
bingshiue wrote:
> In My Project,I need run in Full Screen and Hide Mouse Cursor.
>
> But The Cursor Don't Hide in Program Runnung
>
> How Can I Hide Mouse Cursor ???
>
> http://www.nabble.com/file/p17454106/cursor-in.png
>
> http://www.nabble.com/file/p17454106/cursor-out.png
>
> using System;
> using System.ComponentModel;
>
> using System.Drawing;
>
> using System.Text;
> using System.Windows.Forms;
>
> namespace Monoform
> {
> public class HelloWorld : Form
> {
>
>
>
> static public void Main (string[] args)
> {
> //Application.Run (new HelloWorld ());
> HelloWorld helloworld = new HelloWorld();
>
> helloworld.Activate();
> helloworld.Show();
>
>
> Application.Run();
> Application.DoEvents();
>
> }
>
> public HelloWorld ()
> {
> Text = "Hello Mono World";
> this.MouseEnter += new EventHandler(Game_MouseEnter);
> this.MouseLeave += new EventHandler(Game_MouseLeave);
>
> }
>
> public void Game_MouseEnter(object sender, EventArgs e)
>
> {
>
> //throw new Exception("The method or operation is not
> implemented.");
>
> Text = "Cursoe In";
> Cursor.Hide();
>
> }
>
> public void Game_MouseLeave(object sender, EventArgs e)
>
> {
>
> //throw new Exception("The method or operation is not
> implemented.");
>
> Text = "Cursoe Out";
> Cursor.Hide();
>
> }
>
>
>
> }
> }
_______________________________________________
Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic