Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Category list

How to change mouse cursor icon in windows mobile application

by Ahmadreza Atighechi 6. April 2009 12:28

 

Informing user about application state is one of important aspects in user experience. In windows applications mouse icon indicates one of great application states. When an application is busy mouse icon should be changed to wait cursor mode or hourglass icon. In windows application you can achieve this by changing Cursor property of any Control, Usually by changing "this.Cursor" which "this" is current form in application. See example:

 

this.Cursor = Cursors.WaitCursor;

 

Since control class in compact framework does not have Cursor property, not only developer could not change every control cursor icon but also he could not change form cursor property. So what should developer do in order to indicate application state?

There is a static class in System.Windows.Forms named Cursor and it has a property named "Current" which developer should set it to an appropriate cursor based on application state.

 

 

System.Windows.Forms.Cursor = Cursors.WaitCursor;

Or

System.Windows.Forms.Cursor = Cursors.Default;

 

Tags: ,

Blog

Comments

9/25/2009 10:35:51 AM #

mobile application software development

That's great, I never thought about windows mobile application like that before.

mobile application software development India | Reply

9/25/2009 12:17:17 PM #

enterprise mobility solution

Good post, but have you thought about windows mobile application before?

enterprise mobility solution India | Reply

9/25/2009 3:54:22 PM #

Mobile based Embedded software’s

Good post, but have you thought about How to change mouse cursor icon in windows mobile application?

Mobile based Embedded software’s United States | Reply

9/25/2009 4:56:18 PM #

j2me mobile application development

That's great, I never thought about change mouse cursor icon in windows like that before.

j2me mobile application development United States | Reply

11/12/2009 3:47:17 PM #

Tyre

Great post! I’ve been very interested in How to change mouse cursor icon in windows mobile application for a long time.

Tyre United States | Reply

12/31/2009 1:24:36 AM #

Niche Blueprint 2.0 Review

I love reading your posts. I wish you a Happy New Year!

Niche Blueprint 2.0 Review United States | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



The information on this web site is provided "AS IS" with no warranties, and confers no rights.

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen