如果使用动画光标——用资源文件实现
Dim Mycur As New Cursor(Windows.Forms.Cursor.Current.Handle)
Dim ptr As IntPtr = LoadCursorFromFile( "MyCur.cur ")
Mycur.GetType.InvokeMember。。。。
网络上提供的都是LoadCursorFromFile,从文件中加载,如何从资源文件调入呢?
------解决方案--------------------C#的,自己翻译以下
System.IO.MemoryStream mem = new System.IO.MemoryStream();
mem.Write(WindowsApplication3.Properties.Resources.pen_rl, 0, WindowsApplication3.Properties.Resources.pen_rl.Length);
mem.Flush();
mem.Seek(0, System.IO.SeekOrigin.Begin);
this.Cursor = new Cursor(mem);
mem.Close();
------解决方案--------------------参考:http://community.csdn.net/Expert/TopicView.asp?id=5353828