vi*******@gmail.com wrote:
please explain the following code
Dim rt As String =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttb l{\f0\fswiss\fcharset0
Arial;}}\viewkind4\uc1\pard\qr\f0\fs20 "
Hi,
This is VB .NET code, you may have better luck in the VB .NET newsgroups, as
this is a C# one.
However, your code defines a variable 'rt' of type string, and then puts a
line of richtext encoded text into said variable. You should be able to
view the formatted text in a RichTextBox, by setting the value of, IIRC,
RtfText to the value of 'rt'.
--
Hope this helps,
Tom Spink
Google first, ask later.