I have a handler consuming the keyDown event of a WinForms RTB, that has the following code:
GetTextAtLoc(RTB->SelectionStart); // selects some text at the caret's position
RTB->SelectedText = "SomeOfMyOwn";
GetTextAtLoc(RTB->SelectionStart); // selects the replacement string
RTB->SelectionStart += RTB->SelectionLength - 1;
While this...
I am trying to allow a user to create a table inside of a RichTextBox. I can create a Grid inside of the RichTextBox, but I am having some issues with it.
I start with this XAML in the Grid.
<RichTextBox Name="TB1" AcceptsReturn="True">
<Paragraph TextAlignment="Center">
Hi everybody
</Paragraph>
<Paragraph>
...
Is it possible to add links that will just be links, i.e. not urls or file links but thinks like:
click me, do something
etc
Is this possible? IF so, how do I do this? Basically I just need to mark certain text inside the RichTextBox as links so I can perform operations depending on what link is clicked.
...
Say I clicked somewhere inside a RichTextBox control. How can I get the current line the caret is currently on?
Btw this is to retrieve the whole text string of that line.
...
I am writing a custom control based on RichTextBox that needs the ability to process MouseLeftButtonDown events but must not allow user-initiated selection (I'm doing everything programmatically).
I tried setting a flag in MouseLeftButtonDown to track dragging and then continuously setting the RichTextBox.Selection to nothing in the Mou...
I am looking for any tool or good solution for handling spell check in the RichTextBox for Silverlight 4. Does anyone know of an existing solution or a good way to implement spell checking support for this control?
...
Aside from rewriting the entire RichTextBox control, is there a way to apply the built-in shader effects (e.g. DropShadowEffect) to a specific piece of text or even a Paragraph or Run?
...
I've been trying to modify a rich text field to display correctly in its half of the horizontal field.
The goal is this:
---------------------------
| address is | ***********|
| very long | ** IMAGE **|
| state, zip | ***********|
---------------------------
Where address is a single string separate from the city and zip.
I am modif...
Hello,
I'm using System.Windows.Forms.RichTextBox and by default the tab size is 8 spaces. The RichTextBox itself is not that big and 8 spaces leads to a lot of scrolling. Is there any way to make it 4 spaces. If it matters, the control is initially blank and the user starts entering stuff and the tabs have to shorter (4 spaces) a...
I have created rich text box in crystal reports for displaying product description. Everything is displaying properly but it is not taking more than 65534 characters. I need to display more than 65534, so please any one can help me to use is there any other control like richtext box to display the data.
...
Hello!
My task is to make a control, that behaves itself like RichTextBox, but contains a graphical net.
The only task, this net is solving, is to be visible.
It should be solution in overriding OnPaint method, but it doesn't.
This code:
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
base.OnPaint(e);
...
Hi.
I have a project in wich I must create a form editor (just like infopath) using wpf. For this I thought to use a RichTextBox and in there I would place InlineUIElements with the different controls (TextBox, ComboBox, etc.). The problem is that I can't change some properties associated with those controls. Here's some XAML:
<RichTex...
I need to open a text file with ~4MB in a RichTextBox, but the end of the text was "trimmed".
How do I override a RichTextBox.MaxLength Int32 limit?
...
I am trying to load files into a windows froms (vs 2010) richTextBox but only the first line of the file is loading. I'm using:
// Create an OpenFileDialog to request a file to open.
OpenFileDialog openFile1 = new OpenFileDialog();
// Initialize the OpenFileDialog to look for RTF files.
openFile1.Defaul...
Hello!Need your help!
How to get displayed text in RichTextBox?
I mean if RichTextBox is scrolled to the end, I'd like to receive only those lines, which are visible for me.
P.S.It'll be enough to get fisrt displayed string
...
Hi,
I have a very unique requirement for a rich text box with spell check and auto text. The spell check will not happen on any other site thus i need to have the dictionary and the spell check logic in my site only. It should be open source as i will then add auto text feature to that text box. Any help will be appreciated.
Thanks.
...
i want to put this control that i write this message in
in .net
is this rich text box and is this control has Databind
...
i choose rich text box from from toolbox items
but nothing put in tool box
how can i put it
...
I have a RichTextBox that allows the user to type and edit and insert some complex UIElements that are wrapped in InlineUIContainer. The problem is when the user tries to delete/backspace one of the InlineUIContainers. I would like to disable deleting of these InlineUIContainers and I have another way for the user to delete them.
I ...
I've overridden the key-handling events and am inserting tabs when a user presses the tab key for a RichTextBox.
When I save the XAML from that RichTextBox and reload it, all of the tabs are now spaces.
Does anyone know what I can do to get the RichTextBox to display tabs?
...