Cursor shape in  C#

Posted on 2005-05-09
Last Modified: 2012-06-27
 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

Question by:madmare
    LVL 5

    Expert Comment

    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.

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

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


    Author Comment

    is there is any way to appear my Cursor as a Rectangle ?
    LVL 12

    Accepted Solution

    LVL 48

    Assisted Solution

    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:
    LVL 12

    Expert Comment

    Correct answer provided. Award points

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now