I do not know why attempting to draw a notepad (or some other text that accepts another control) with a standard label Does not work. I have seen the documentation and the examples and I am not seeing the problem. The cursor remains a circle with a line through it and if I register the feedback callback then the event is not always there. Creating a standard Windows Form Application, leaving a Label Control and MouseDown & amp; MouseMove events give me this code where I call label 1. DoDragDrop (label 1, DragDropEffects.All | DragDropEffects.Link). Any help would be appreciated.
Here is my form code:
using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Namespace Dragafellabell {public partial class} Form 1: Form {Point mechanical location; Bool _bDragging = false; Public Form 1 () {Initialization (); } Private Zero onLabelMouseDown (Object Sender, MouseEventArgs e) {m_ClickLocation = e.Location; _bDragging = true; } Private Zero OnLabelMouseMove (Object Sender, MouseEventArgs e) {if (_bDragging) {point pt = E. place; Size drag size = system information Dragons Eyes; If Math.Abs (pt.X - m_ClickLocation.X) & gt; Drag Sess. Width / 2 || Math.abs (pt.Y - m_ClickLocation.Y) & gt; Size Drag / Height 2) { DragDropEffects RC = label 1. DoDragDrop (label 1, dragprofits.all | dragraph effects.ink); _bDragging = false; Standard edit controls (text boxes) do not support drag and drop;);}}}}}
and will not accept any left text.
Comments
Post a Comment