PDA

Click to See Complete Forum and Search --> : VS2005 CF20: Show hourglass when busy works sometimes


easymoney
Aug 26th, 2007, 10:57 PM
I am using Windows CE 5.0 and deploying this app on my handheld. I cannot figure a ryhme or reason, but the hourglass worked at first, but sometimes it does not display it.

I started with this:


Imports System.Windows.Forms

Cursor.Show()
Cursor.Current = Cursors.WaitCursor

I have tried code such as this, but still same result:

Cursor.Show()
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor

Why does the hourglass not show?

easymoney
Aug 27th, 2007, 12:34 AM
Okay. This is wierd. I know that my handheld app was showing an hourglass in the center screen that rotated every second or so.

I even reset my handheld back to factory, clean Windows CE 50.

I made this simple app, it shows the busy cursor when I run it on an emulator image. It shows nothing when I run it on my device.

What can cause this?

Arrrrrggggghhhhh! :mad:

Public Class Form1

Private Sub Form1_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated

Cursor.Show()
Cursor.Current = Cursors.WaitCursor

Application.DoEvents()

End Sub

End Class

petevick
Aug 27th, 2007, 02:55 AM
Hi,
try sticking Cursor.Current = Cursors.WaitCursor behind a button and see what happens, or putting in a 'me.refresh'.

The waitcursor sometimes does appear reluctant to show itself

Pete

easymoney
Aug 27th, 2007, 11:45 AM
"The waitcursor sometimes does appear reluctant to show itself"

I see your point. I am testing a combination of strategies, it seems to be helping. I am going to change my layout and where I call the cursor to see what works best.

I will post back once I find a combination that works reliablely.

Thanks, back to testing. :)

easymoney
Aug 29th, 2007, 06:12 AM
It seems to work better if only a single form is loaded. If I load a form on top of my frmMain then the hourglass disappears..... I guess I will change my layout to accomadate this quirk. :blush:

petevick
Aug 29th, 2007, 07:28 AM
Hi,
you tried a 'me.refresh' ?

Pete

easymoney
Aug 31st, 2007, 05:56 AM
I know I tried the Me.Refresh, but it did not seem to help. Here is an issue I discovered that may provide a clue as to why....

Since the model I am using has a full 96 key keypad, I am attempting to use all keyboard shortcuts as an alternative to the touch screen.

One thing I have noticed is that the busy symbol show but I must touch the screen at least one time. If I do not, and use the shortcut keys, the busy cursor never appears... hmmm.

Idk, I will play some more. This is weird. CF is a strange little animal sometimes. Its limited set of methods and events can be very unforgiving.

easymoney
Sep 6th, 2007, 06:11 AM
One thing I have noticed is that the busy symbol will show but I must touch the screen at least one time to activate the cursor. If I do not, and use the shortcut keys never touching the screen, the busy cursor never appears... hmmm.

Any ideas... maybe I should write a small sample code to show the problem in action... I will as soon as time permits...