richtextbox

WPF: Limit number of characters in one row

I'd like to have "80 characters per line" setting for WPF RichTextBox control. Is there any nice way to do this? ...

Javascript Rich Text Editor and associated class to filter and clean the input?

I realise there are several rich text editors for jQuery but I cannot find any that have an associated class that does the filtering and cleaning required to accept the input into a database. Does such a class exist? I am particularly interested for a PHP library, but .NET would be interesting too. ...

How do I give the RichTextBox a flat look?

Hi! I'm working on a WinForms SmartClient application, which uses a lot of RichTextBox controls - some in place of the regular TextBox for various reasons. Unfortunately the RichTextBox draws the ugly Win95 3D border instead of the themed XP or Vista style border. Does anyone know of a way to apply the themed border to the RichTextBox?...

How can I send emails that preserve the formatting that a user provides in RTF in a RichTextBox?

What I'm trying to do is provide a form where a user can type or cut and past formatted text and be able to send it as an email (similar to outlook). This is required because it's closely resembles the current work flow and these emails aren't being saved anywhere besides people's inboxes. This is obviously a bandage on a bigger proble...

How to display HTML in a text Area

Dear all, I save formatted text (bold, changed in font, style...etc) in an nvarchar(max) field, its for some Description field, on another stage, I want to be able to edit this description, so in the Editing Page, I read the original inoformation, fill it in the fields and wait for the user to change it and save, this is working for all ...

richtextbox in vb.net

i am using a richtext box in my vb.net application and i need to dispaly top ten records from the database in it.but it is displaying only 1 record.what to do?? kindly help..... ...

Autofit WinForms RichTextBox to its contents

Does anybody know how can I dynamically resize a RichTextBox control to its contents? ...

Prevent Blinking Cursor (IBeam) from a Read-Only RichTextBox

Is there anyway to prevent the cursor (IBeam) of a read-only RichRextBox from blinking whenever the textbox got focus? I've tried to block the WM_SETFOCUS message from the WndProc but it causes the form to hang. if( m.Msg == 0x0007 ) return; ...

What's the best way to save a RichTextFile in C#?

I'm trying to create a notepad/wordpad clone. I want to save it in .rtf format so that it can be read by wordpad. How do I save a do this in C#? ...

Using jquery, how can I handle tags the same way that Live Mail handles email addresses?

I have a need to have a tag-like system that operates very similarly to how Live Mail does email addresses. For those who don't know, Live Mail provides a textbox in which you can enter email addresses. As you finish typing in an email address, Live Mail changes the address from being plain text into a div that has a border and has the ...

Clicking HyperLinks in a RichTextBox without holding down CTRL - WPF

I have a WPF RichTextBox with isReadOnly set to True. I would like users to be able to click on HyperLinks contained within the RTB, without them having to hold down CTRL. The Click event on the HyperLink doesn't seem to fire unless CTRL is held-down, so I'm unsure of how to proceed. Thanks for your help, John ...

TinyMCE: Using CSS class attributes with the formatselect-dropdown formats.

I would like to customize the formats in the TinyMCE formatselect dropdown to support css class attributes. Example: If would like to be able to select <h2 class='foo'> instead of just <h2> as format in the formatselect dropdown. Does anyone here have an idea how I could do this? ...

Reading from RichTextBox in VC++

Hi, I have to read the text character by character from a RichTextBox in VC++. I need a function like getch or getche. ...

how to create rich text area dynamically in client browser

i am uses wysiwg... rich text area and i want to create it dynamically at run time also i uses FCKeditor and try to create new rich text area at run time but here i can' create dynamic rich text area at run time in browser also when i create new one data in old rich text area mist be persist its value ...

Recommendations for making a Log Window in WPF

I'm currently working on a Log Window for my application that looks and behaves just like the Output Window in Visual Studio. It can be bombarded by thousands of messages per second, and it needs to handle a very large log (hundreds of thousands of lines). So far, I've made one quickly by using a RichTextBox and it works well. I used th...

How to selectively underline strings in RichTextBox?

Hi, In my program after clicking on the button - selected ListView entries should be copied to RichTextBox. ListView contains contact information, and the effect I want to accomplish is similar to the one in Oultook (when choosing contacts from contact book). Part of my code that serves this purpose looks like that: private void t...

Strange elements appearing in javascript rich text editors

There's been a rash of strange HTML form elements showing up in javascript-based rich text editors all around the web. The first evidence I can find of this is in the joomla forums a little under a month ago. Since then there have also been reports from drupal users and wordpress users, and there's now evidence of this all over the web...

How to show a flowdocument in multiple pages like Word?

I have an project that is much like MS Word and needs to display and Edit a range of pages with contains Rich text and want to show this content onscreen in multiple rich-text-box controls that are stacked vertically and scrolled to create the effect of document flow. Also i would like the content to flow automatically between the contr...

C# - Loading a large file into a WPF RichTextBox?

I need to load a ~ 10MB range text file into a WPF RichTextBox, but my current code is freezing up the UI. I tried making a background worker do the loading, but that doesnt seem to work too well either. Here's my loading code. Is there any way to improve its performance? Thanks. //works well for small files only private void L...

Append text to the beginning in the Rich Text Box

private void button1_Click(object sender, EventArgs e) { richTextBox1.AppendText("\r\n"); richTextBox1.Focus(); string s = "Enter "; richTextBox1.AppendText(s + "\r\n"); richTextBox1.SelectionStart = richTextBox1.Text.Length - (s.Length +1); richTextBox1.SelectionLength = s.Length +1; richTextBox1.SelectionFon...