• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4266
  • Last Modified:

Cursor shape in C#

hi,
 how do i change the Cursor shape in code, the shape now is the defult shape, i want to change it to be a rectangle shape

thnx
0
madmare
Asked:
madmare
2 Solutions
 
RoninTheCommented:
there are few cursors available in System.Windows.Forms.Cursors class
you may set the Cursor property to whatever value you may like among those.

e.g.
this.Cursor = System.Windows.Forms.Cursors.WaitCursor;

but there isn't any rectangular cursor availabale in Cursors class as you asked.

0
 
madmareAuthor Commented:
is there is any way to appear my Cursor as a Rectangle ?
0
 
AlexFMCommented:
You can create your own cursors, add them to the project resources and use them at runtime. The following sample contains number of custom cursors:
http://www.codeproject.com/csharp/DrawTools.asp
0
 
mcv22Commented:
Correct answer provided. Award points
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now