My application makes use of a custom cursor loaded from a predefined file (.cur) during runtime. I know windows uses a standard 32×32 pixels cursor or a 48×48 pixel cursor for high DPI devices.
The cursor I want to use in my application however is much larger. A small cursor is displayed correctly when I use Mouse.SetCursor(_CustomCursor). When a larger cursor is chosen, I don’t see any cursor. It would seem that the cursor loads correctly but cannot be displayed.
Note: Currently a static .cur cursor is acceptable.
Is there a way to display larger cursors in my application and if there is a limit on the size, what is it?
Yes, it’s a system restriction. Not just for VB.NET…
To get the max size of the Cursor you can use, you should query the SystemParameters.CursorHeight and SystemParameters.CursorWidth properties.
As stated by MSDN these properties are mapped to the
SM_CYCURSORandSM_CXCURSORproperties respectivly.As you can read in MSDN
and