Skip to content

Mouse pointer

mark

Asked Sep 8, 2005, 4:16 AM EDT2 answers
Share
LinkedInX
How do you change the default mouse pointer in windows in c# code?
I know you can do it via control panel and mouse properties but i would 
like to write a console app that does it automaticly.
Also knowing how to set the desktop wallpaper from a console app would 
be handy!!

Many thanx

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    You use Cursor property of a control or Form. For example, this changes the cursor for a form. 
    Form1.Cursor = Cursors.Hand;

    Same can be applied to any control.
    0
  • 0
    thankx for your reply but i want to be able to change the cursor of windows xp itself not
    just one app!
    0