473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

RichTextBox in Vs2005 Vb.Net shows unformatted RTF

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
Jun 6 '06 #1
3 5016
> 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?


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.

Jun 6 '06 #2
Bob
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
"AMercer" <AM*****@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
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?


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.

Jun 6 '06 #3

Bob wrote:
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>

--
Larry Lard
Replies to group please

Jun 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Patrick Blackman | last post by:
Hi have created a richtextbox from scratch using the following code: public class TextPad:Control { public TextPad(){} //RichTextBox overrides protected override CreateParams CreateParams {...
0
by: Lokanathan | last post by:
Hi In VB.Net when i try to get rtf from richtextbox it shows unhandled exception . this will happen when store many pictures into that.I would like no the Byte Size of the Richtextbox.This will...
0
by: Jeyakumar | last post by:
In VB.Net when i try to get rtf from richtextbox it shows unhandled exception . this will happen when store many pictures into that.I would like to know the Byte Size of the Richtextbox rtf.This will...
2
by: **Developer** | last post by:
Did the RichTextBox control change in VS2005?
1
by: teo | last post by:
hallo I'm with vs2005 fw 2..0 is there a way to "freeze" the richtextbox, so to avoid user from editing it? I can Enable=False, but it no more scrolls and the font-color becomes grayed. ...
0
by: rwf_20 | last post by:
I've got a form that contains a RichTextBox control and periodically receives strings to append to it. The function in question is below. I've been receiving mysterious bug reports of application...
0
by: =?Utf-8?B?Q2xhcmU=?= | last post by:
Hi groups, VS2005 + Mobile SDK 6 work well on my PC, but after installing platform builder 5.0, VS2005 shows “XML parsing error” when open *.sln. We reinstall VS2005, Mobile SDK and platform...
1
by: =?Utf-8?B?Um9nZXI=?= | last post by:
In my app I would like to change the color of the hyperlink from blue to purple when a user clicks the hyperlink in a RichTextBox. The DetectUrls property is set to True and I handle the...
0
by: =?Utf-8?B?Um9nZXI=?= | last post by:
In my app I would like to change the color of the hyperlink from blue to purple when a user clicks the hyperlink in a RichTextBox. The DetectUrls property is set to True and I handle the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.