Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to code of drag the item one text to another in c#. plz rply
Posted

You have two controls: a source and a target.
1) Set the target's Control.AllowDrop[^] property to true.
2) Start the drag'n'drop process in the source by calling its Control.DoDragDrop[^] method. The data you want to transfer is stored in an object that you give the method as a parameter.
3) Use the target's DragEnter[^] and DragDrop[^] events. The event arguments contain the data that you put in the drag'n'drop process earlier. Do with it as you need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900