Change mouse pointer

  • Thread starter Thread starter Sheetal
  • Start date Start date
S

Sheetal

Hello,

I am doing an application in CF for Symbol PPT 2800. I am performing
DB operations using web services and it takes some time. I would like
to show an hourglass (or wait cursor) or anything like that on the
screen so user knows that application is running. Can somebody pelase
tell me how to do that.

Thanks in advance,
Sheetal.
 
From inside a Form object...

[C#]
this.Cursor = Cursors.WaitCursor;
// do stuff
this.Cursor = Cursors.Default;

[VB.Net]
Me.Cursor = Cursors.WaitCursor
' do stuff
Me.Cursor = Cursors.Default
 
Sorry, I got "desktop framework on the brain"... here is a way that works
with the CF:

Cursor.Current = Cursors.WaitCursor;
// do stuff
Cursor.Current = Cursors.Default;

--
Tim Wilson
..Net Compact Framework MVP

Tim Wilson said:
From inside a Form object...

[C#]
this.Cursor = Cursors.WaitCursor;
// do stuff
this.Cursor = Cursors.Default;

[VB.Net]
Me.Cursor = Cursors.WaitCursor
' do stuff
Me.Cursor = Cursors.Default

--
Tim Wilson
.Net Compact Framework MVP

Sheetal said:
Hello,

I am doing an application in CF for Symbol PPT 2800. I am performing
DB operations using web services and it takes some time. I would like
to show an hourglass (or wait cursor) or anything like that on the
screen so user knows that application is running. Can somebody pelase
tell me how to do that.

Thanks in advance,
Sheetal.
 
Thanks Tim. I had been trying Me.cursor but it wasn't working. Now it does :-)

Tim Wilson said:
Sorry, I got "desktop framework on the brain"... here is a way that works
with the CF:

Cursor.Current = Cursors.WaitCursor;
// do stuff
Cursor.Current = Cursors.Default;

--
Tim Wilson
.Net Compact Framework MVP

Tim Wilson said:
From inside a Form object...

[C#]
this.Cursor = Cursors.WaitCursor;
// do stuff
this.Cursor = Cursors.Default;

[VB.Net]
Me.Cursor = Cursors.WaitCursor
' do stuff
Me.Cursor = Cursors.Default

--
Tim Wilson
.Net Compact Framework MVP

Sheetal said:
Hello,

I am doing an application in CF for Symbol PPT 2800. I am performing
DB operations using web services and it takes some time. I would like
to show an hourglass (or wait cursor) or anything like that on the
screen so user knows that application is running. Can somebody pelase
tell me how to do that.

Thanks in advance,
Sheetal.
 
The VB code given is not correct for the .net CF, the
correct code is

Cursor.Current = Cursors.WaitCursor
Cursor.Current = Cursors.Default
-----Original Message-----
From inside a Form object...

[C#]
this.Cursor = Cursors.WaitCursor;
// do stuff
this.Cursor = Cursors.Default;

[VB.Net]
Me.Cursor = Cursors.WaitCursor
' do stuff
Me.Cursor = Cursors.Default

--
Tim Wilson
..Net Compact Framework MVP

Sheetal said:
Hello,

I am doing an application in CF for Symbol PPT 2800. I am performing
DB operations using web services and it takes some time. I would like
to show an hourglass (or wait cursor) or anything like that on the
screen so user knows that application is running. Can somebody pelase
tell me how to do that.

Thanks in advance,
Sheetal.


.
 
Yep. I corrected that in the next post. It's in C# only but it's not that
difficult to translate to VB.

--
Tim Wilson
..Net Compact Framework MVP

Tom S said:
The VB code given is not correct for the .net CF, the
correct code is

Cursor.Current = Cursors.WaitCursor
Cursor.Current = Cursors.Default
-----Original Message-----
From inside a Form object...

[C#]
this.Cursor = Cursors.WaitCursor;
// do stuff
this.Cursor = Cursors.Default;

[VB.Net]
Me.Cursor = Cursors.WaitCursor
' do stuff
Me.Cursor = Cursors.Default

--
Tim Wilson
..Net Compact Framework MVP

Sheetal said:
Hello,

I am doing an application in CF for Symbol PPT 2800. I am performing
DB operations using web services and it takes some time. I would like
to show an hourglass (or wait cursor) or anything like that on the
screen so user knows that application is running. Can somebody pelase
tell me how to do that.

Thanks in advance,
Sheetal.


.
 
Back
Top