Custom Cursor

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi All

Has anyone ever created a custom cursor that is bigger than 32x32 pixels? Is
it possible?

Regards,

Sam
 
Hi,

Real simple example.

Dim bm As New Bitmap(64, 64)

Dim g As Graphics = Graphics.FromImage(bm)

g.Clear(Color.Transparent)

g.DrawEllipse(Pens.Red, 0, 0, 64, 64)

g.Dispose()

Dim cur As New Cursor(bm.GetHicon)

Me.Cursor = cur



Ken

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

Hi All

Has anyone ever created a custom cursor that is bigger than 32x32 pixels? Is
it possible?

Regards,

Sam
 
Sam said:
Has anyone ever created a custom cursor that is bigger than 32x32 pixels?
Is it possible?

You can create a cursor file which is larger than 32 × 32 pixels with VS.NET
("File" -> "New" -> "File..." -> "General" -> "Cursor", then right-click the
left panel and choose "Add image type..." from the context menu.
 
I followed your suggestions and I got my cursor set at 48x48. I did not know
that I could have my cursor greater than 32x32. This is awesome. Thanks guys

Regards,

Sam
 

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