Very weird RichTextBox bug

G

Guest

I have tried to make a simple sample of this - but the simple samples all
work. The basic problem is I create a RichTextBox and then call
RichTextBox.LoadFile() to load a rtf file in it.

If the file has an image in it - the control displays nothing and
RichTextBox.Text returns "". If I do the same thing in my simple sample
program, it all works fine.

Where it does not work I have a Word AddIn (IDTExtensibility2, not VSTO)
that uses DevExpress for it's ribbon forms, etc. In it to display the rtf
file I bring up a Form that has a RichTextBox in it and call LoadFile(). And
if the rtf has an image in it I get a blank control.

To try and recreate it I just did a plain old Windows form - no DevExpress
and no Word AddIn. But that works fine. Has anyone ever heard of anything
like this?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
L

Linda Liu [MSFT]

Hi Dave,

Based on my understanding, you use a .NET RichTextBox control as well as a
3rd party product DevExpress in your WinForm application. The problem is
that if the RichTextBox loads a RTF file with an image in it, the
RichTextBox displays nothing. If I'm off base, please feel free to let me
know.

Since you couldn't reproduce the problem when you don't use DevExpress in
your application, I think this problem may be caused by the 3rd party
product DevExpress. Perhaps, DevExpress doesn't work well with .NET
RichTextBox control.

I suggest that you contact the Developer Express company who produces this
product to get support on this issue.

Thank you for your understanding and wish you good luck!

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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