richtextbox

All I want in a Rich Text Editor is bold, italic, and links. Is there anything out there?

I'm working on a small web application that will let users enter calendar events. For the description of the event, I would like them to be able to do the following: Set bold text Set italic text Create a link Absolutely nothing else For example, if someone tries to paste "Nasty Hot Pink Text" from Word, I don't want that to work the...

Show html formated text on IceFaces

I'm saving html and/or rich formated text in a database, and I'm trying to show it in an IceFaces text field, but it doesn't show the propper format (line breaks or urls). Is there a tag or a component that shows me the proper rich text or html format? Thanks! ...

.NET Framework: How to make RichTextBox true read-only?

Setting RichTextBox as “ReadOnly” doesn't prevent embedded objects (like equations) from being edited by double-clicking them. I could disable the control but then there is a gray background (can't be just changed with BackColor) and no way to scroll. I tried to override OnDoubleClick in a derived class but no success. ...

RegExp C# and richtextbox

Hello , Im trying to make the following thing : 1) using regex to match all strings that have the following pattern "@username" << done i got the pattern @([A-z09_-]){4,20} 2) to parse the text from rich text box and to color those patterns "@somethign" in a color 3) make them clickable & when clicked to insert the clicked string in...

In a wpf TextBox can i make characters in a string that exceed a a certain length turn red?

Im using a TextBox control and want the characters to turn red after a certain number of characters to show users they have typed too much. I dont want to truncate as the user might have typed that "really important thought" and if i truncated they would lose it. I have validation on my underlying business model which tells me when the i...

RichTextBox SelectionChanged called before MouseDown?

I'm working with a RichTextBox, and would like to do one thing in the SelectionChanged event if the mouse is down, and another if it's not (e.g. if the keyboard is used to select something). However, the SelectionChanged event is apparently called before MouseDown, so it seems there's no way for me to know if the mouse is down while pro...

Edit text with in-line images on the iPhone

What is the best way of letting the user edit text with in-line images (or at least text with different background colours) on the iPhone? The UITextView doesn't support this. Edit: I just noticed that the e-mail client on the iPhone can edit text with images. So it's definitely possible. ...

Why is RichTextBox ignoring \fs in my RTF?

I'd like to use a RichTextBox to display some text in the start page of my WinForms application, as follows: richTextBox1.Rtf = @"{\rtf1\pard\fs40 Hello World\par }"; The RichTextBox ignores my font-size directive (\fs40). It works in both Word and WordPad. What am I doing wrong? ...

How do I find the viewable area of a WPF RichTextBox?

I'm working on an app where I have a bunch of text in a RichTextBox. I'm jumping to various positions within the text, (hopping to an arbitrary paragraph for example) which seems to work by send the caret to that position but I can't seem to control where in the viewable area the caret ends up. Sometimes the caret ends up at the top of...

is there a good alternative to richtextbox in wpf?

Hey all Blend seems to crash when I try to edit the template of a RichTextBox (even blend 3.) I need an alternative that can display bold, highlighted, italic text of different colors etc. Is there anything like this? ...

How to bind a WPF hyperlink in a richtextbox to a command?

With the MVVM pattern, how does one go about dynamically binding an ICommand to the click event of a hyperlink inside of a RichTextBox? ...

Drag-and-drop modifies read-only WinForm container (plus other peculiarities of drag-and-drop)

Sampling drag-and-drop between WinForm RichTextBoxes within one application and between them and external applications revealed two interesting observations (item 1 certainly appears to be a bug; in a perfect world, item 2 would probably be as well): Some drag-and-drop operations delete the dragged text from the source container, wheth...

Restrict editing in RichTextBox

Hi, I was just wondering if there is a way that we disable editing of a specific word in the System.Window.Controls.RichTextBox? For example, I have "Hello This is a test", and I want to disable users to a edit test(which can be anything). I want to them to change whatever they want, but when they want to click or do anything on "test", ...

Removing RichText Formatting from RichTextBox in Visual C#

Hi All, I'm developing an advanced rich text editor in c# but have stumbled upon a problem that I can't seem to grasp. I have been trying to let users save their documents as Text files (plain text). By using the following: MyRichTextBox.SaveFile(filepath, PlainText); But the problem is that when they view that file (which should hav...

Winforms RichtextBox Bold/Italic/Underline Formatting issue

Hi there, As you can tell from the title, Im having a bit of issue regarding assigning and removing format styles to and from selected text in the RichTexBox control. I know how to make text individually Bold/Italic/Underline, but not a combination of these. I know of ways that can achieve this character by character, but this would se...

Preserve RichText formatting when storing in a database?

Hi, I've created a rich text box which stored the "textBox.Text" value in an SDF database. The storing works, but the formatting seems to be lost. Is this something that SDF databases can't handle? Do I need to store in binary or something? Not sure how to do that either. I'm using Visual Basic Express Edition with Winforms and writing...

Reset RTF in RichTextBox?

I'm trying to "reset" the formatting in my RichTextBox (WinForms, not WPF). I was previously using richTextBox.Text = richTextBox.Text; However, that seems to have suddenly failed me. Now no matter what I set richTextBox.Text to, it retains some of the rtf formatting. I've tried richTextBox.Rtf = richTextBox.Text; However, that...

Copying emoticon "text" from a richtextbox showing image in wpf

I am looking for a good, clean way to enable copying of text from a richtextbox displaying emoticons. Think of skype, where you can select a chat and it will copy the emoticon images and convert them to their textual representations (smiley image to :) etc). I am using the MVVM pattern. ...

How to change cursor of hyperlink in richtextbox wpf?

I add hyperlinks dynamically in code to a Richtextbox, but I can't seem to set link.Cursor to any value, such as Cursors.Hand (it just ignores it). Any help? ...

Construct string with multiple fonts

I need to add strings coming from different RichTextBoxes with different fonts into one RichTextBox retaining the original fonts (more typically sometime I get XML format where fonts for substrings is defined.) Is there a way of constructing this string in memory and then simply puting it in a RichTextBox? If not, is there any other wa...