Bitmap b = (Bitmap)Bitmap.FromFile("G:\\Documents and Settings\\vishal\\My Documents\\Visual Studio 2008\\Projects\\WindowsFormsApplication1\\WindowsFormsApplication1\\Resources\\i4.gif");
IntPtr ptr = b.GetHicon();
Cursor c = new Cursor(ptr);
// attach cursor to the form
this.Cursor = c;
IntPtr ptr = b.GetHicon();
Cursor c = new Cursor(ptr);
// attach cursor to the form
this.Cursor = c;
10:08 PM
0 Responses to "Create custom cursor from image"
Post a Comment