Changing Cursor Style in C# Application

J

Jim Frazer

Hi,

I'm working on an application in C# that will allow the user to create
simple CAD drawings on a CEPC system. I would like to be able to change the
cursor shape depending on the drawing mode selected by the user. I started
out by setting up P/Invokes for LoadCursor and SetCursor. Calling
LoadCursor followed by SetCursor does allow me to change to a different
cursor, such as the cross cursor, but as soon as the application leaves the
function in which I make the change, the cursor reverts back to the standard
arrow cursor. I tried a simple test that changed the cursor to the wait
cursor via:

Cursor.Current = Cursors.WaitCursor;

The same behavior occurs. The cursor changes, but reverts to the arrow as
soon as I leave the function where the change was made. I've searched the
archives for this newsgroup but couldn't find anything that would help me.
I'm open to ideas. I'm fluent in C++ dll writing if that would be useful.

Thanks,

Jim Frazer
 
G

Guest

Jim,

I can't offer any help for your problem, in fact, I have the same issue
myself. I was wondering if you ever found a solution.

Thanks,

Ralph F.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top