
How can I prevent RichTextBox to accept objects?
Thanks Ken, I fixed that. However, I noticed another problem, somehow related to the previous one. When I have formatted text inside the clipboard and press Ctrl+V, the text is pasted with ITS font. I don't want this to happen because I'm using only one font for the entire document. Any idea on this problem?
--
Outlook Express Unofficial Site: http://www.outlookexpress.go.ro
VB Open Source Site: http://open-source.home.ro
Quote:
> This seems to work pretty good for me....
> '============================
> Private Sub RichTextBox1_Change()
> If RichTextBox1.OLEObjects.Count > 0 Then
> RichTextBox1.OLEObjects.Clear
> RichTextBox1.SetFocus
> End If
> End Sub
> '============================
> Hi,
> I have this problem with the RichTextBox control. I'm only using for text
> editing. The problem is that, for example, when I have an image in the
> clipboard and press Ctrl+V, the image is pasted in the RichTextBox. How can
> I prevent this?
> --
> Outlook Express Unofficial Site: http://www.outlookexpress.go.ro
> VB Open Source Site: http://open-source.home.ro