Я создал файл .cur из файла .png с помощью онлайн -сервиса. Курсор появляется правильно. Но я хочу изменить свою позицию горячей точки.void LoadAndAlterCursor(string oldCursorFileName, string newCursorFileName)
{
FileStream fs = new FileStream(oldCursorFileName, FileMode.Open);
BinaryReader br = new BinaryReader(fs);
Byte[] bytes = new byte[20000];
bytes = br.ReadBytes(bytes.Length);
br.Close();
fs.Close();
bytes[10] = 0;
bytes[11] = 0;
bytes[12] = 0;
bytes[13] = 0;
fs = new FileStream(newCursorFileName, FileMode.Create);
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(bytes);
bw.Close();
fs.Close();
this.Cursor = new Cursor(newCursorFileName);
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... ways-32-32