[VB.NET] Using a custom cursor in .cur format - Printable Version

-Shoutbox (
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: [VB.NET] Using a custom cursor in .cur format (/showthread.php?tid=88625)

[VB.NET] Using a custom cursor in .cur format by ryxdp on 01-22-2009 at 05:03 AM

Since for some reason VB.NET doesn't like using the current applied scheme's hand/link cursor resource and instead favours the ugly aliased default one that's been in use since 9x or earlier (it shows the exact same one on Vista), I decided to try and find a quick workaround for it: code:
Private Sub HackCursor(ByVal c As Windows.Forms.Control)
    Dim cursor As String = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Control Panel\Cursors", "Hand", "")
    c.Cursor = New Cursor(cursor)
End Sub

But it keeps telling me the image format is invalid, even though the registry value links to a .cur file.

Is there an easier way of doing this? Thanks :P