468,306 Members | 1,169 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

Custom Cursor

Sam
Hi All

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

Regards,

Sam
Nov 21 '05 #1
3 3136
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

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

"Sam" <qd*@datawave.ca> wrote in message
news:eh**************@TK2MSFTNGP09.phx.gbl...
Hi All

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

Regards,

Sam

Nov 21 '05 #2
"Sam" <qd*@datawave.ca> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
Sam
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
"Sam" <qd*@datawave.ca> wrote in message
news:eh**************@TK2MSFTNGP09.phx.gbl...
Hi All

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

Regards,

Sam

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Simon Wigzell | last post: by
2 posts views Thread by Brad | last post: by
1 post views Thread by Tim | last post: by
2 posts views Thread by Paul Cheetham | last post: by
5 posts views Thread by Paul Cheetham | last post: by
reply views Thread by Andy Wynn | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.