Search code examples
delphirichedit

How to disable Drag/drop TRichEdit or TRzRichEdit


How to block the drag and drop in TRichEdit? delphi code I work with Rich edit and having difficulties on blocking the drag and drop feature specially dragging text from outside the form let say comming from IE to my RichEdit.


Solution

  • See RevokeDragDrop on MSDN;

    uses
      activex;
    
    RevokeDragDrop(RichEdit1.Handle);