The dialog works as a color picker w/ a shot of the entire desktop as it's background and is instantiated from a form.
The dialog's Cursor property is set to a pipette (custom) cursor on load.
The region on the dialog where the parent form appears is set to transparent so current color at pixel location is reflected on the parent form.
On load, however, the cursor momentarily changes to a pipette cursor and then changes back to default, regardless.
I'm not sure what's hap开发者_JS百科pening. I already tried setting the pipette cursor again OnMouseHover, OnMouseMove, heck even OnPaint, on the dialog, but nothing works.
Try this one out in the Form load. It worked for my Custom cursor (Controll for the Cursor was a Button)
System.IO.MemoryStream ms = new System.IO.MemoryStream(CustomCursorPath);
Controlname.Cursor = new Cursor(ms);
精彩评论