bmpCursor = global::XRF.Properties.Resources.Cross3; Graphics g = Graphics.FromImage(bmpCursor); Brush brush = new SolidBrush(Color.Black); g.DrawString( (int)pf.X+"\r\n"+pf.Y, new Font(FontFamily.GenericSansSerif, 80f), brush, new PointF(0f, 0f)); //pictureBox1.Cursor.Dispose(); IntPtr hIcon = bmpCursor.GetHicon(); pictureBox1.Cursor = new Cursor(hIcon);//change the cursor of picturebox1 when moving mouse brush.Dispose(); g.Dispose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)