开发者

embedding cursor file

开发者 https://www.devze.com 2023-03-12 13:13 出处:网络
I use VS 2008 and C#, I want to embed cursor file (x.cur) in开发者_开发知识库 the resources, to be included in the EXE and I want to call it.

I use VS 2008 and C#, I want to embed cursor file (x.cur) in开发者_开发知识库 the resources, to be included in the EXE and I want to call it.

Any suggestion to do that please?


Add the file to your application resources and use something like this to load it:

var cursor = new Cursor(System.Reflection.Assembly.GetEntryAssembly().GetManifestResourceStream("x.cur"));
0

精彩评论

暂无评论...
验证码 换一张
取 消