[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-winforms-list
Subject:    [Mono-winforms-list]  How Can I Hide Mouse Cursor ???
From:       bingshiue <shinjyo.sha () msa ! hinet ! net>
Date:       2008-05-25 3:16:09
Message-ID: 17454106.post () talk ! nabble ! com
[Download RAW message or body]


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();

      } 		
		
		
		
    }
}
-- 
View this message in context: \
http://www.nabble.com/How-Can-I-Hide-Mouse-Cursor-----tp17454106p17454106.html Sent \
from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
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