Windows Mobile Waiting Cursor
-
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
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
-
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
-
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
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.
-
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.
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
-
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
Simply try this Cursor.Current = Cursors.WaitCursor; Cursor.Show(); and Cursor.Current = Cursors.Default; Cursor.Hide();
-
Simply try this Cursor.Current = Cursors.WaitCursor; Cursor.Show(); and Cursor.Current = Cursors.Default; Cursor.Hide();