Sanjay,
Even though you can create your own OLE objects handler (overriding
RichTextBox's CreateRichEditOleCallback) I don't think this is what you want
to do. This would be the best solution, but windows forms doesn't provide
IRichEditOleCallback interface out of the box. So what I'd suggest is to
handle DragEnter as well as ctrl+v key combination and check the DataObject
in the clipboard ot that is dragged by the user for text inside. This is
pretty easy to do (see System.Windows.Forms.DataObject class in MSDN for
more info). So you can allow drop or paste at your discretion.

Signature
Stoitcho Goutsev (100) [C# MVP]
> hi all,
> In VB6 we used to have a property called OLEObjects on RichTextBox.
[quoted text clipped - 21 lines]
>
> Sanjay Singh
Sanjay - 05 Apr 2005 06:04 GMT
hi Stoitcho,
but I dont find any event like "DragEnter" . Do you mean "Enter" event or
what.
please clarify it.
thanks
sanjay
> Sanjay,
>
[quoted text clipped - 32 lines]
> >
> > Sanjay Singh