Note that there are some explanatory texts on larger screens.

plurals
  1. POException on Cursor.Current = Cursors.Default;
    primarykey
    data
    text
    <p>I'm developing a compact framework 3.5 application on a windows CE based scanner device. When I'm calling a webservice I'd like to display the wait cursor with</p> <pre><code>Cursor.Current = Cursors.WaitCursor; </code></pre> <p>This works fine. However when I try to reset the cursor to its default state with the statement</p> <pre><code>Cursor.Current = Cursors.Default; </code></pre> <p>I always get an unspecified unhandled exception with this stacktrace: </p> <pre><code>bij Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar) bij System.Windows.Forms.Cursor.set_Current(Cursor value) bij AppName.MainForm.btnSearch_Click(Object sender, EventArgs e) bij System.Windows.Forms.Control.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnClick(EventArgs e) bij System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam) bij System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) bij Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) bij System.Windows.Forms.Application.Run(Form fm) bij AppName.Program.Main() </code></pre> <p>I tried this in a completely vanilla smart device project in the form click event but even then this occurs. When I run the application in a windows mobile device emulator instead of on the real CE device it runs fine.</p> <p>Could this be a limitation of the device itself? I'm pretty flabbergasted that such simple code doesn't work. And the built in applications of Windows CE work fine with wait cursors.</p> <p>Thanks for any ideas.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload