cursors not visible in windows ce.net devices

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please let me know why is this?
Cursor.Current = Cursors.WaitCursor code works in all pocket pc devices but
when the same code is used in windows ce.net device..no wait cursor is
displayed.
Thanks in advance
 
Does your CE device have a cursor? It's not a requrement from the OEM, so
they may have disabled it.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
So this is not the emulator and it is a 4.2 device, right? Do you see the
cursor when launching a CF app or when other time consuming activity takes
place on the device? What I am getting at is that you might be missing
something from the image.

Cheers
Daniel
 
Thanks for the prompt response...yes it is a 4.2 device and not a emulator. I
dont see the cursor when launching any other app or for any other time
consuming process.As chris tacke said it might have been disabled in the OEM
too.I have tested this in 2 different devices and in both the devices the
cursors where not visible.Also is there anyway i can load any custom
cursors??Iam using VB.NET
 
Nope. If the display driver isn't showing a cursor, adding your own will
have no effect. Go with Sergey's suggestion of mimicing one.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Thanks Sergey and Chris Tacke .. i have already started on that..but if any
of u have an code snippet and the usage as a cursor..please can u post it..it
will be very useful...
Thanks.
 
Create a new form with the size 48x48, borderless and without
controlbox. Paste the code below in the load event. It will done topmost
window and move it to center of a touchscreen.

Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);

this.Capture = true;
IntPtr hwnd = OpenNETCF.Win32.Win32Window.GetCapture();
this.Capture = false;

OpenNETCF.Win32.Win32Window.SetWindowPos(hwnd,
Win32Window.SetWindowPosZOrder.HWND_TOP, this.Location.X,
this.Location.Y, this.Width, this.Height, 0);

You may implement this window as a singleton and show/hide when it will
be needed. How to implement a singleton follow this link:
http://msdn.microsoft.com/library/d...n-us/dnpatterns/html/ImpSingletonInCsharp.asp

OpenNETCF library is available here:
http://www.opennetcf.org/CategoryView.aspx?category=Home

Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Thanks again for the code sergey... i have implemented the code for vb.net
and also used it as a singleton form in other forms. But the issue now is
when i click elsewhere in the other form before my processs is over..the
cursor form loses its focus and goes behind the existing form!! any
suggestions or workaround for this? or am i missing something very simple in
this??
Thanks in advance again!!
 
Back
Top