Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Custom Cursor

Status
Not open for further replies.

masontwo

Programmer
Jun 2, 2005
2
US
am a fairly new programmer to C#, but I have done some extensive work build my own Custom grid control.
I am having a problem with a Custom Cursor displaying though. The problem is this, I add a new Item to my solution, choose a .cur file and then draw my cursor. When I use this cursor I get the I-Beam cursor everytime.
When I create the cursor my code looks like this:

Cursor cur = new Cursor(@"filename");
this.Cursor = cur;

Thanks for the help
 
Did you call this.Invalidate afterwards?

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top