S
Sanjay
hi all,
In VB6 we used to have a property called OLEObjects on RichTextBox.
I used it to make my richTextbox not accept OLE objects when user tries to
paste.
Code something like following:
If RichTextBox1.OLEObjects.count > 0 Then
If Len(Clipboard.getText) = 0 Then
' show Some message regarding OLE object pasting not supported
Else
RichTextBox1.SelRTF = Clipboard.getText
End If
RichTextBox1.OLEObjects.remove (0)
End If
I want to know how can it be achieved using .net RichTextBox.
plz help me on the same.
any help would be appreciated.
thanks
Sanjay Singh
In VB6 we used to have a property called OLEObjects on RichTextBox.
I used it to make my richTextbox not accept OLE objects when user tries to
paste.
Code something like following:
If RichTextBox1.OLEObjects.count > 0 Then
If Len(Clipboard.getText) = 0 Then
' show Some message regarding OLE object pasting not supported
Else
RichTextBox1.SelRTF = Clipboard.getText
End If
RichTextBox1.OLEObjects.remove (0)
End If
I want to know how can it be achieved using .net RichTextBox.
plz help me on the same.
any help would be appreciated.
thanks
Sanjay Singh