What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [VB.NET] Using a custom cursor in .cur format

[VB.NET] Using a custom cursor in .cur format
Author: Message:
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
30 / Male / Flag
Joined: Jun 2006
O.P. Huh?  [VB.NET] Using a custom cursor in .cur format
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:

vbnet 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
01-22-2009 05:03 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On