T
Tim
Hi,
I would like to create a custom mouse cursor for my print preview page. I
want to use a bitmap of a magnifiying glass with a plus in it. Pretty
standard stuff.
How do I change the cursor?
I found the code below but I just get the default mouse cursor dragging
around the bitmap which is actually a little behind. I want to replace the
cursor with my own icon.
Thanks
Tim
**ZoomIn is a bitmap.
Graphics g = Graphics.FromImage ( ZoomIn );
IntPtr ptr = ZoomIn.GetHicon();
Cursor c = new Cursor( ptr );
this.Cursor = c;
I would like to create a custom mouse cursor for my print preview page. I
want to use a bitmap of a magnifiying glass with a plus in it. Pretty
standard stuff.
How do I change the cursor?
I found the code below but I just get the default mouse cursor dragging
around the bitmap which is actually a little behind. I want to replace the
cursor with my own icon.
Thanks
Tim
**ZoomIn is a bitmap.
Graphics g = Graphics.FromImage ( ZoomIn );
IntPtr ptr = ZoomIn.GetHicon();
Cursor c = new Cursor( ptr );
this.Cursor = c;