473,836 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5040
> 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*****@discus sions.microsoft .com> wrote in message
news:AD******** *************** ***********@mic rosoft.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
1592
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 { get { CreateParams cp = base.CreateParams;
0
219
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 work fine for charecters, When i try after pasting of many pictures error has come.pls help me to solve this problum with regard M K Lokanatha
0
1147
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 work fine for charecters, When i try after pasting of many pictures error has come.pls help me to solve this problum
2
1312
by: **Developer** | last post by:
Did the RichTextBox control change in VS2005?
1
1788
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. In short,
0
1285
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 crashes ('Attempt to Read/Write Protected Memory', 'Object Reference not set to instance of an object') which I cannot recreate. In the reports, however, it seems that the crash occurs just after (or possibly during) a sequence of calls to this...
0
2005
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 builder, but the problem is the same. How to sovle the problem? Regards, Clare
1
2279
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 RichTextBox1.LinkClicked event to launch a browser window. That works fine. The problem is that once the DetectUrls property is True the RichTextBox control shows the link in blue even if I select the text and change the SelectionColor to purple. For...
0
2164
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 RichTextBox1.LinkClicked event to launch a browser window. That works fine. The problem is that once the DetectUrls property is True the RichTextBox control shows the link in blue even if I select the text and change the SelectionColor to purple. For...
0
9668
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9374
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6979
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5649
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4449
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4016
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.