using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Bitmap bitmap = new Bitmap(Image.FromFile(@"C:\Users\CSIE\Desktop\Chrysanthemum.jpg"), 30, 30);
Cursor cursor = new Cursor(bitmap.GetHicon());
this.Cursor = cursor;
}
}
}
參考資料:
http://tw.myblog.yahoo.com/akira32-akira32/article?mid=327
http://home.gamer.com.tw/creationDetail.php?sn=1392894
http://www.allenj.net/?p=253