Problem while using Custom Cursor!!

Jul 13 2005 12:45 AM

Hi,

I am attempting to simulate a drag n drop operation in one of my custom components (build from scratch). For this reason, I was changing the cursor to a custom drag cursor (that will give the appearance of dragging) which is defined static and will be read from the file as follows:

private static Cursor dragCursor = new Cursor("..\\Images\\MyCursorFile.cur");

It loads fine and I am able to use it quite well. However, sometimes, the cursor just does not show and I have to close and re-open my application to get back the cursor. I have no clue why this happens as there is no reproducable path to the problem.

Any ideas? (Or any other way to load a .cur file without having to load from a file? Or any other way to assign custom cursors??)

Thanks.

Regards,
Rajesh


Answers (2)