How to drag and drop?

This code helps to copy or Move user's text from one text box to another text box. In this resource user can get help to drag and drop text. In this resource user can copy text by pressing CTRL key and then drag that text.

This code helps to drag and drop functionality in .net

Through this code user can drag and drop text from one TextBox To another TextBox. Here We take two textboxes named txtFrom and txtTo.You have to allowdrop Property true in both textboxes. And here We take a constant variable like

const byte Ctrlbyte = 8;

This variable helps to detect CTRL key is pressed or not if CTRL is pressed then drag and drop operation will perform COPY otherwise perform MOVE.