How to bind the string value to Richtextbox.Rtf in vb.net

G

Gancse

Hi all,

I have bind the string to Richtextbox.Rtf as

RichTextBox1.Rtf = "Binding to Richtext bOx"

but it shows the error as

An unhandled exception of type ' System.ArgumentException' Occurred in
system.windows.forms.dll

Additional information: Invalid File Format

pls response if u known ASAP......


by,
M.Ganesan
 
N

Nayan

The "Rtf" property has a proper format as documented on Microsoft's
site (I don't remember the document name).

If you just want to set a text to the richtextbox, use "Text" property
instead of "Rtf".

If you know how to use the RTF format, only then go for "Rtf" property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top