Is there any way to change the default tab size in a .NET RichTextBox?
It currently seems to be set to the equivalent of 8 spaces which is kinda large for my taste.
Edit: To clarify, I want to set the global default of "\t" displays as 4 spaces for the control. From what I can understand, the SelectionTabs property requires you to sel...
I have a RichTextBox where I need to update the Text property frequently, but when I do so the RichTextBox "blinks" annoyingly as it refreshes all throughout a method call. I was hoping to find an easy way to temporarily suppress the screen refresh until my method is done, but the only thing I've found on the web is to override the WndP...
Hi,
Is there any way to change the color of an underline in a RichTextBox?
I've tried http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it.
Thanks.
...
For my C# RichTextBox, I want to programmatically do the same thing as clicking the up arrow at the top of a vertical scroll bar, which moves the RichTextBox display up by one line. What is the code for this? Thanks!
...
Something like this one on the Stackoverflow site would be nice!
Or something non-jQuery that doesn't conflict with jQuery $() tags would be great.
...
The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)
But I cannot seem to get it to another language. (I live in the Netherlands.. ;))
Does any of you have an experience with the SpellCheck option of TextBox?
I know it can be change by changing the keyboard settings, but I want to change it in...
I need to create a simple editor using a RichTextBox control in a windows forms application that includes the ability to create tables.
Is it possible to create a table in a RichTextBox control?
If so, any pointers on the best way to do this would be appreciated.
...
I need some basic CMS functionality with rich text editing. On stack overflow there is a regular textarea edit control, with support for Markdown style syntax formatting. That would be beyond my users, so I want something like a rich edit control that you can type into on the web site. I know it is possible, as loads of sites do it, but ...
I'm using a RichTextBox (.NET WinForms 3.5) and would like to override some of the standard ShortCut keys....
For example, I don't want Ctrl+I to make the text italic via the RichText method, but to instead run my own method for processing the text.
Any ideas?
...
I have a RichTextBox in .NET WinForms. I have been hooking up hot keys with KeyUp. Everything is working fine, except for CtrlI. By the time my handler gets its turn, the selection has been replaced with a '\t'. I turned off ShortcutsEnabled, but it didn't make any difference. Any ideas?
...
I'm using a WPF RichTextBox control to input some text with user formatting capability, including font size adjustment. The built-in commands for IncreaseFontSize and DecreaseFontSize will adjust the font size by 0.75pt each time the command is executed. I would like to increase the granularity to 2pt.
Can this be done without impleme...
I have a text area and a function to do syntax highlighting on it. Right now it reads the entire RichTextBox. How would I get a string variable containing the current line? Below is the code i currently have.
Private Sub HighLight()
Dim rm As System.Text.RegularExpressions.MatchCollection
Dim m As System.Text.RegularExpressions....
If a line of text is wrapped to an additional line, how do I determine programmatically the point in the string where it was broken.
Example: Input string = "This is a test of a wrapped line of text".
Based on the width of the richTextBox it could display:
This is a test of a wrapped line of
text.
What...
I am using a RichTextBox in WPF, and am trying to set the default paragraph spacing to 0 (so that there is no paragraph spacing). While I could do this in XAML, I would like to achieve it programmatically if possible. Any ideas?
...
To do DataBinding of the Document in a WPF RichtextBox, I saw 2 Solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy".
Neither the first or the second are satisfactory. Does somebody know another solution, or instead, a commercial RTF control which is capable of Data...
I have the following XAML code:
<Window x:Class="RichText_Wrapping.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1">
<Grid>
<RichTextBox Height="100" Margin="2" Name="richTextBox1">
<FlowDocument>
<Paragraph>
...
hi there, I have a simple vb6 editor type application which has a richtextbox as the editor page. It allows users to key in stuff and the store it into a file which will keep all the text in RTF stored as CDATA in xml.
When you load back the file, it will read it off the xml and load back the rtf. We allow for unicode editing, but my pr...
I am looking for a good, solid, rich text editor for my ASP.NET web app (3.5).
I know there are some out there and I've been looking around for a while with no luck. Does anyone know if the one SO uses (the one I'm typing in right now) is available somewhere?
Your help/guidance is appreciated!
...
I'm really loving the WPF RichTextBox, and all of the out-of-the-box functionality it comes with... but printing is something that I'm having trouble with. I can print (from code) using a PrintDialog and passing in my RichTextBox as a Visual (or by using the "Document")...
But my question is, is there a simple way to use the application...
Hi,
I've made a C# usercontrol with one textbox and one richtextbox.
How can I access the properties of the richtextbox from outside the usercontrol.
For example.. if i put it in a form, how can i use the Text propertie of the richtextbox???
thanks
...