[Mono-winforms-list] Cursor.Hide Not working

Stifu stifu at free.fr
Sat Jun 9 07:20:15 UTC 2012


Actually, that's what proposed in the WinForms sources...

https://github.com/mono/mono/blob/master/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs

		internal override void ShowCursor(bool show)
		{
			;	// FIXME - X11 doesn't 'hide' the cursor. we could create an empty
cursor
		}


Stifu wrote
> 
> If all fails, you could just use a custom invisible cursor instead (like,
> a cursor icon made of a single transparent pixel).
> Though it'd be nice to fix in WinForms itself...
> 
> 
> UserDave2012 wrote
>> 
>> I am porting a VB.NET application from Win over to Linux and am having a
>> problem of the Cursor.Hide function not working.  It does not throw an
>> error, it just doesn't hide the cursor.  I searched the forum and see
>> that this was reported in 2008 but it didn't have a resolution.  Neither
>> of the following statements have any effect so I can't even move it off
>> the screen: 
>> 
>> Cursor.Position = New Point(50,50)
>> Cursor.Hide
>> 
>> Both of these statements function correctly on Win.  Can anyone point me
>> to a patch or work-around to hide the cursor?
>> 
>> Thank you in advance
>> 
>> Edit: 
>> Linux Platform : Xubuntu 64
>> MonoVersion 2.10.8 (latest available via Synaptic)
>> 
> 

--
View this message in context: http://mono.1490590.n4.nabble.com/Cursor-Hide-Not-working-tp4649801p4649810.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list