if (CropImage == true) { rect = null; picmain.Refresh(); rect = new UserRect(new Rectangle( -1,-1,0,0)); rect.SetPictureBox(picmain); CropImage = false; cmnucropimg.Hide(); } else { rect = null; if (UserRect.Width <= 5) { picmain.Refresh(); rect = new UserRect(new Rectangle(150, 150, 100, 100)); rect.SetPictureBox(picmain); } CropImage = true; // picmain.Cursor = Cursors.Cross; } EditImage = false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)