richtextbox

A really good RichTextBox alternative for .NET

I'm writing a Windows .NET app that needs a WYSIWYG text editor control that can display images inline with the text output the text with it's formatting into HTML, XML or something similar (other than RTF) preferably free but commercial is fine ...

Displaying tooltip on mouse hover of a text

Hi, I want to display a tooltip when the mouse hovers over a link in my custom rich edit control. Consider the following text :- We all sleep at night . In my case the word sleep is a link. When the user moves the mouse under the link , in this case "sleep", I want to display a tooltip for the link . The follwing came to my mind, bu...

Selecting text in RichTexbox in C# deletes the text

I have typed in the following text in a control derived from Richtextbox "The world is {beautful}". My main intention is to create a link for the word beautful. I can create this using CFE_LINK , but that's when I select the text. When I use Select (4,9), the text within the range 4 to 9 gets deleted. Can someone please help me with...

How do I scroll a RichTextBox to the bottom?

I need to be able to scroll a RichTextBox to the bottom, even when I am not appending text. I know I can append text, and then use that to set the selection start. However I want to ensure it is at the bottom for visual reasons, so I am not adding any text. ...

Custom link in Richtextbox

I am creating a usercontrol derived from Richtextbox. The world is [beautiful] I want to do the following operations on it 1) When the user keys in the ] , I need to create a link. I have written the following code for this. a) Select the text , Select (4,7) b) Set the mask and its effect private void SetSelectionStyle(UInt32 m...

How to force the insertion mode in a WPF RichTextBox

Does anyone know how to control the the insertion mode of a WPF RichTextBox. I want to force the RichTextBox to always be in overwrite mode rather than insert. ...

richtextbox selectioncolor and selectionbackcolor property

Hi I want to select a particular line of text and highlight it with a Blue Color and i want the forecolor of that text to be white. I tried this.Select(start, length); this.SelectionBackColor = Color.Blue; this.SelectionColor = Color.White; but it doesn't work. What is wrong? I want to simulate the effect we get when we select som...

richtextbox indentation problem

Hi, I am facing problem in displaying word file in richtextbox. My problem is that when text file is shown in RTB control in c#,it's formatting (Tables, indentatation, spaces,tabs etc...) gets distorted. I am using LoadFile method to load file in RTB with RichText. Any help will be appriciated. Thanks ...

How to double buffer a RichTextBox in c#?

Probably not double buffering but I'm trying to make a highlighter (pure amusement) using a RichTextBox. The problem I have is that, when there are a lot of highlighted words, programmer-made flickering appear and even see the textbox scroll. I don't think that RichTextBox has DoubleBuffered property, and even if it had, it wouldn't wor...

Getting the word during mousemove and checking if its a link

I am creating a user control derived from RichTextBox. I have to display a tooltip under a custom hyperlink I have created the cusom hyperlink ,with CFM_LINK . Now when I do a mouse hover on the link , a tooltip should be displayed , with values respective to the link . "I am using [Word2003] , but [Word2007] is the recent version. "...

Using .net RichTextEdit, but filtering data types?

The RichTextEdit control in .net does 99% of what I need to do for my application, except for a few little things: 1) I want to disallow pasting/dragging images into the control 2) When text is pasted/dragged into the control, I want to reset its style to the control's default As far as I can work out, Microsoft hasn't provided any type...

How to insert a unicode character in a rich text box?

I'm writing a WPF application with a RichTextBox and a Toolbar (a VERY simple RichText Editor). Anyway, I want to put 6 unicode characters in the ToolBar that can be clicked and will be inserted at whatever point to the RichTextBox. This seems like something that should be fairly simple to do (without a lot of codebehind). Is it, or do ...

How to save rich text from a web application and display it in a rich text box

I'm working on an application with a co-worker at the moment - she is writing a web form that allows users to enter and manage text that will be saved to the database and then displayed within a desktop application. I'm using a Rich Text Box to display the text from the database. We want to allow the users to use basic formatting (bold,...

C# Count All Occurences Of Line Feed and Carrage Return

In C# i am making a simple text editor with line numbers. I want to count the ammount of valid line breaks in a string. i want to count \r \n \r\n How can i do this? Or better yet, can someone point me to an article on how to line number an rtf box ...

Replace text in WPF Richtextbox.

How to replace a character in WPf richtextbox? ...

RichTextBox (WPF) does not have string property "Text"

Hi, I am trying to set/get the text of my RichTextBox, but Text is not among list of its properties when I want to get test.Text... I am using code behind in C# (.net framework 3.5 SP1) RichTextBox test = new RichTextBox(); cannot have test.Text(?) Do you know how come it can be possible ? thanks, ...

Applying a TextDecoration within a TextRange in RichTextBox

Hi, I have a System.Control.RichTextBox (not System.Form.RichTextBox), and I would like look for a specific word, and apply certain decoration on the found phrase. So far, I got this, but it's not working properly. I am looking for a list of words, but the TextPointer is not pointing to the right location.Therefore, all my ranges are i...

Rich text in gtk-sharp?

Does anybody out there know if there is a richtextbox equivalent in gtk# or any way to replicate the functionality? I might not need full rtf support, I could probably get by with being able to show multicolored text if a full rtf solution can't be done. Thanks in Advance. ...

ASP.Net rich text edit control

Hello everyone, I am looking for control which could be used in ASP.Net, providing rich text editing function, like Office Live, Google Docs which could work on line. Another function needed is download into Microsoft Word format. Any recommended ASP.Net built-in controls or samples/documents? thanks in advance, George ...

Rich text box rounded corner selection highlight

I've been searching around the web on how to code syntax highlighting text boxes and I've got most of it working. But I've always loved mac's xcode selection highlight which has rounded corners. Recently I saw this type of selection highlight in inType text editor. This image explians much better the effect I want to have in my rich text...