Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've created a new UserControl, in my project I added a new cursor file, and draw it myself.

 

Now, I would like the cursor to be added in the DLL file when my project is compiled. And, I want to be able in my UserControl to refer to the cursor that I added in the project, not to the filepath of the cursor wich would mean I must distribute the DLL file AND the Cursor File...

 

a kind of:

myCursor = Cursors.LoadFromThisProject("myCursor.cur")

and not

myCursor = New Cursor(Application.StartupPath & "\myCursor.cur")

because this one tells me, when I try to add my control to a form, that it couldn't find "C:\program files\Microsoft Visual Studio .Net 2003\common7\IDE\mycursor.cur" file.

 

I tried adding an imageList then adding Cursor files, but it doesn't seem to work like the ICO file. I can't add .CUR file to the imagelist.

 

Thanks for the help,

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...