RichTextBox in Vs2005 Vb.Net shows unformatted RTF

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I had an app in VB6 that I'm "upgrading" <GGGG> to Vb.net 2005. In Vb6 I had
rtf text in a field in a Sql server 2000 field and it would show up as
formatted RTF in my richtextbox. In vs.net that no longer works, the RTF in
the table shows up as unformatted RTF, just as if it were simple ASCII
characters.

How do I get this functionality back?

Thanks again Microsoft! Its great to know you continue making products that
are backwards compatible and not just unilaterally remove feautures we're
familiar with.

Any help would be appreciated.

Bob
 
I had an app in VB6 that I'm "upgrading said:
rtf text in a field in a Sql server 2000 field and it would show up as
formatted RTF in my richtextbox. In vs.net that no longer works, the RTF in
the table shows up as unformatted RTF, just as if it were simple ASCII
characters.

How do I get this functionality back?

Probably you need to set the rtb's .rtf property rather than the .text
property. But I'm just guessing since you didn't post any code.
 
RTB does not have an rtf property to bind to in the properties panel for the
control.

I don't have any code. I'm just using bound controls . In Vb6 I could use a
sql server field bound to a richtextbox. Apparently you can't do that any
more in Vs2005.net, some improvement in development productivity!

Any one know how I can keep my existing data in sqlserver and bind it to a
VS2005 UI?

Thanks for your help guys.

Bob
 
Bob said:
I had an app in VB6 that I'm "upgrading" <GGGG> to Vb.net 2005. In Vb6 I had
rtf text in a field in a Sql server 2000 field and it would show up as
formatted RTF in my richtextbox. In vs.net that no longer works, the RTF in
the table shows up as unformatted RTF, just as if it were simple ASCII
characters.

How do I get this functionality back?

<http://tinyurl.com/ek3px>
 
Back
Top