• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4281
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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