Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Windows Mobile Waiting Cursor

Windows Mobile Waiting Cursor

Scheduled Pinned Locked Moved Hardware & Devices
question
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miguelji
    wrote on last edited by
    #1

    Dear All, How can I show the Windows Mobile circular waiting cursor from my form? I'm sure it is very easy, but I've been looking for the solution form some time now without aany success. Thanks in advance, miguelji

    L T 2 Replies Last reply
    0
    • M miguelji

      Dear All, How can I show the Windows Mobile circular waiting cursor from my form? I'm sure it is very easy, but I've been looking for the solution form some time now without aany success. Thanks in advance, miguelji

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      I would try Cursor=Cursors.WaitCursor; :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      M 1 Reply Last reply
      0
      • L Luc Pattyn

        I would try Cursor=Cursors.WaitCursor; :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        M Offline
        M Offline
        miguelji
        wrote on last edited by
        #3

        Tat was my first try, but in a Windows Mobile 6 device it doesn't work. I'm probably doing something wrong, but it is so simple that I dont know what can be wrong. miguelji

        1 Reply Last reply
        0
        • M miguelji

          Dear All, How can I show the Windows Mobile circular waiting cursor from my form? I'm sure it is very easy, but I've been looking for the solution form some time now without aany success. Thanks in advance, miguelji

          T Offline
          T Offline
          Tim Layton
          wrote on last edited by
          #4

          Yes, I think the cursor.waitcursor method may work in your scenario. Windows Mobile by default should display the waiting cursor for you. Is there something specific you are doing inside of your custom app? You didn't leave a lot of details.

          M 1 Reply Last reply
          0
          • T Tim Layton

            Yes, I think the cursor.waitcursor method may work in your scenario. Windows Mobile by default should display the waiting cursor for you. Is there something specific you are doing inside of your custom app? You didn't leave a lot of details.

            M Offline
            M Offline
            miguelji
            wrote on last edited by
            #5

            Yes you are right, I was not leaving any detail. I need to show the waiting cursor while my program performs a series of time consuming tasks. I've isolated the problem and created a WM6 (CF 3.5) application with a single form and a single button in it. Then I write the following code for the click event of the button (I use VB, but this would be the C# equivalent): ---------------------------------------------- Cursor c = default(Cursor); c = Cursors.WaitCursor; this.Refresh(); int I = 0; int J = 0; for (I = 1; I <= 10000000; I++) { J = I * 3; } c = Cursors.Default; this.Refresh(); ---------------------------------------------- I run the programa, click the button and nothing happens, no cursor is displayed. What Am I doing wrong here? Thanks, miguelji

            D 1 Reply Last reply
            0
            • M miguelji

              Yes you are right, I was not leaving any detail. I need to show the waiting cursor while my program performs a series of time consuming tasks. I've isolated the problem and created a WM6 (CF 3.5) application with a single form and a single button in it. Then I write the following code for the click event of the button (I use VB, but this would be the C# equivalent): ---------------------------------------------- Cursor c = default(Cursor); c = Cursors.WaitCursor; this.Refresh(); int I = 0; int J = 0; for (I = 1; I <= 10000000; I++) { J = I * 3; } c = Cursors.Default; this.Refresh(); ---------------------------------------------- I run the programa, click the button and nothing happens, no cursor is displayed. What Am I doing wrong here? Thanks, miguelji

              D Offline
              D Offline
              doananhtai
              wrote on last edited by
              #6

              Simply try this Cursor.Current = Cursors.WaitCursor; Cursor.Show(); and Cursor.Current = Cursors.Default; Cursor.Hide();

              M 1 Reply Last reply
              0
              • D doananhtai

                Simply try this Cursor.Current = Cursors.WaitCursor; Cursor.Show(); and Cursor.Current = Cursors.Default; Cursor.Hide();

                M Offline
                M Offline
                miguelji
                wrote on last edited by
                #7

                Thank you doananhtai! It works perfect. It was easy, but thank you for being the one to tell how to do it. Cheers, miguelji

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups