14 references to Cursor
System.Windows.Forms.Tests (12)
System\Windows\Forms\AxHostTests.cs (1)
1585using Cursor original = new("bitmaps/cursor.cur");
System\Windows\Forms\CursorConverterTests.cs (1)
141using Cursor sourceCursor = new(fileName);
System\Windows\Forms\CursorTests.cs (10)
120using Cursor cursor = new(fileName); 130Assert.Throws<ArgumentNullException>("path", () => new Cursor((string)null)); 138Assert.Throws<ArgumentException>("path", () => new Cursor(fileName)); 144Assert.Throws<FileNotFoundException>(() => new Cursor("NoSuchFile")); 151Assert.Throws<ArgumentException>("fileName", () => new Cursor(fileName)); 329using Cursor sourceCursor = new(Path.Join("bitmaps", "10x16_one_entry_32bit.ico")); 344Cursor cursor = new(Path.Join("bitmaps", "10x16_one_entry_32bit.ico")); 380using Cursor cursor = new(Path.Join("bitmaps", "10x16_one_entry_32bit.ico")); 417using Cursor cursor = new(Path.Join("bitmaps", "10x16_one_entry_32bit.ico")); 502using Cursor cursor = new(Path.Join("bitmaps", "10x16_one_entry_32bit.ico"));
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
751_myNormalCursor = new Cursor("./Resources/3dwarro.cur"); 752_myNoDropCursor = new Cursor("./Resources/3dwno.cur");