Drag&Drop selected Text, anyone knows something?
-
Hi, I've read several articles about drag&drop and know how to d&d text from one textbox to another. But if I catch the MouseDown event, I can't select text or if I select text it becomes unselected if I try to drag it. My target is to select and drag and drop text like in Visual Studio itself (Just from one textbox to another). I tried several workarounds, but no one works as expected. My environment is Visual Studio, graphics library is default Windows Forms. I would appreciate helpfull hints, thank you. :^) :sigh: :doh: :) :-D Kalix
-
Hi, I've read several articles about drag&drop and know how to d&d text from one textbox to another. But if I catch the MouseDown event, I can't select text or if I select text it becomes unselected if I try to drag it. My target is to select and drag and drop text like in Visual Studio itself (Just from one textbox to another). I tried several workarounds, but no one works as expected. My environment is Visual Studio, graphics library is default Windows Forms. I would appreciate helpfull hints, thank you. :^) :sigh: :doh: :) :-D Kalix
-
you want to check to see if there is selected text first (selected text length > 1). If there is, you are doing a drag/drop. If not, you are selecting text. This is how you make the distinction. hope this helps