Home > Net >  Border issues about the mouse drag and drop formation
Border issues about the mouse drag and drop formation

Time:11-09

Bosses, ask a question, is a, I'm writing in imagebox controls, with the left mouse button pressed as a starting point coordinates, with the movement of the mouse, there will be a red border with becomes big small, but now the problem is, when I stop the mouse, the red border disappears, in mobile, red border appeared, and then how to make whatever the mouse to move or stop the red border will not disappear, thank you, there is a word is a little small is "if (the startPoint. X.equals (movePoint. X) | | the startPoint. Y.E quals (movePoint. Y))"



CodePudding user response:

https://bbs.csdn.net/topics/392725261

CodePudding user response:

Directly write a button, click only do one thing in advance to see effect:

 
Graphics g=imageBox1. CreateGraphics ();
G.D rawRectangle (new Pen (Color. Red, 2), the new Rectangle (10,20,30,40));
G.D ispose ();


  •  Tags:  
  • C#
  • Related