Newbie: Change the cursor image at runtime

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hi,
I know how to change the default cursor pointer with one of the predefined
ones, but how is it possible to change it with a gif or bmp?
Can it be a moving gif ?

TIA

-steve
 
Hi,

Dim bm As New Bitmap("c:\camera.bmp")

Dim cur As New Cursor(bm.GetHicon)

Me.Cursor = cur



Ken

----------------------------

Hi,
I know how to change the default cursor pointer with one of the predefined
ones, but how is it possible to change it with a gif or bmp?
Can it be a moving gif ?

TIA

-steve
 
Ken Tucker said:
Dim bm As New Bitmap("c:\camera.bmp")

Dim cur As New Cursor(bm.GetHicon)

Me.Cursor = cur

Yep, that will work. Nevertheless, I would use a cursor file if possible in
order to be able to specify the hotspot.
 
I seem to be having problems ....
I read on the net that .NET is quite picky with cursor bitmaps. They have to
be monochrome and of a specific size (dont remember exactly).
Is there a way to have a monochrome but animated gif ?
I guess its a bit involved?
 

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

Back
Top