Results 1 to 8 of 8

Thread: VS2005 CF20: Show hourglass when busy works sometimes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    VS2005 CF20: Show hourglass when busy works sometimes

    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:

    Code:
            Imports System.Windows.Forms
    
            Cursor.Show()
            Cursor.Current = Cursors.WaitCursor
    I have tried code such as this, but still same result:

    Code:
            Cursor.Show()
            System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
    Why does the hourglass not show?

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    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!

    Code:
    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

  3. #3
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    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
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    "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.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    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.

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    Hi,
    you tried a 'me.refresh' ?

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    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.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Posts
    352

    Re: VS2005 CF20: Show hourglass when busy works sometimes

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width