P
Peter Oliphant
I've now asked how three times in this forum with no answers. So I went to
the 'windowsforms' newsgroup, and found this post, also unanswered, with the
same problem:
"Hello,
I've tried to find something on this in the newsgroups but came up with
nada:
I'm trying to create a custom cursor in VS2005. I have a .cur file
that I have put in my "Resources" folder. The resource manager does
not recognize the .cur extension and puts it under the generic "Files"
category (vs. "Images", "Icons", "Strings", etc.)
When I try to refer to the cursor, like:
Properties.Resources.arrowTrans, apparently it comes out to a byte[].
How can I convert this into a Cursor object?
I used to have code in 2003 that used the GetManifestResourceStream
method, but that doesn't work. And how does the
"BaseApplicationManifest" option work in the "Build Action" item (vs.
"None", "Embedded Resource", "Compile", and "Content") in the file
Properties window?
Thanks,
Jon"
And nobody has responded to him for the last MONTH. I just recently posted
almost the exact same question today, so I guess I'm out of luck until at
least next year to find out how to do this...lol
So I guess nobody knows how to use.CUR files or make a custom cursor form a
bitmap. Don't feel too bad. Neither does MSDN2, as their example doesn't
work...
http://msdn2.microsoft.com/en-us/library/system.windows.forms.cursor.aspx
So I guess MS itself is keeping this a secret. Oh goody! : )
[==P==]
the 'windowsforms' newsgroup, and found this post, also unanswered, with the
same problem:
"Hello,
I've tried to find something on this in the newsgroups but came up with
nada:
I'm trying to create a custom cursor in VS2005. I have a .cur file
that I have put in my "Resources" folder. The resource manager does
not recognize the .cur extension and puts it under the generic "Files"
category (vs. "Images", "Icons", "Strings", etc.)
When I try to refer to the cursor, like:
Properties.Resources.arrowTrans, apparently it comes out to a byte[].
How can I convert this into a Cursor object?
I used to have code in 2003 that used the GetManifestResourceStream
method, but that doesn't work. And how does the
"BaseApplicationManifest" option work in the "Build Action" item (vs.
"None", "Embedded Resource", "Compile", and "Content") in the file
Properties window?
Thanks,
Jon"
And nobody has responded to him for the last MONTH. I just recently posted
almost the exact same question today, so I guess I'm out of luck until at
least next year to find out how to do this...lol
So I guess nobody knows how to use.CUR files or make a custom cursor form a
bitmap. Don't feel too bad. Neither does MSDN2, as their example doesn't
work...
http://msdn2.microsoft.com/en-us/library/system.windows.forms.cursor.aspx
So I guess MS itself is keeping this a secret. Oh goody! : )
[==P==]