Questions tagged [richtextbox]
The RichTextBox control allows to display or edit RTF (Rich Text Format) content, which may include formatted paragraphs, hyperlinks, and inline images.
3,534
questions
0
votes
0
answers
7
views
Sharepoint/SPFx - Which component do you use to render RichText field?
Which component (from which package) do you use to build rich text editor for rich text field with support for table creation for your SPFx projects?
So far I found "@pnp/spfx-controls-react/lib/...
0
votes
0
answers
17
views
How to make AutoCompletMenu open with specific items after typing a point
I used the AutoCompletMenu library in Visual Basic to create an autocomplete menu for RicTextBox, and the menu worked when writing the first two letters of any word contained in Items for ...
0
votes
1
answer
65
views
How to create file hyperlink in rich text box with utf8 characters?
I have a rich textbox and I want to use a hyperlink on it, so when the user clicks it, the website link or local file is opened. In my last question, I said that link click event does not fire ...
1
vote
1
answer
81
views
WPF RichTextBox text navigation [closed]
I am developing test application where have RichTextBox are and few buttons. That control contains text and whenever caret position is located when I am clicking button I want to count next 3 words ...
0
votes
0
answers
41
views
Paste formatted text from rich textbox to online text editor
I'm creating a WinForms that scans a Word document, extracts the important data and writes it to a rich textbox with rtf format. I want to create a button that copies the rich textbox content so users ...
2
votes
0
answers
70
views
How can get the correct font size in C# windows form?
I want to create a simple text editor in my C# WinForms Project.
I'm almost done, but I have a simple problem and I do not know how to fix this.
I want get the font name, size and style of the cursor ...
0
votes
0
answers
36
views
Show HTMLBody of a .oft template in a RichTextBox
I am trying to create a simple form to just show the HTML contents os a Outlook Template HTML body in a RichTextBox in Visual Studio 2019. So far, I was able to use the template as intended, but when ...
0
votes
0
answers
71
views
How to use RichTextBox similar to Richtx32.ocx for Office 365 64 bit
I want to use RichTextBox ocx control for Office 365 64 bit. But the control supports only 32 bit and doesn't work for Office 64 bit.
Is there any solution to use this control for Office 365 64 bit or ...
0
votes
1
answer
58
views
C# Change string color one richtext line
Trying to make this function change color of the line it receives.
I doing a little notepad with a richtextbox1.
I've tried this code:
private string changeLineColor(string lineIn)
{
string sb = ...
0
votes
0
answers
82
views
RichTextBox doesn't scroll properly when resized and shows an extra whitespace
The RichTextBox control appears to have this strange bug that I'm trying to find a way around it.
Suppose you have a RichTextBox control with enough text to show the vertical scrollbar. Then, you ...
-1
votes
1
answer
34
views
C# Richtext Box Selection Remain After Operation
I'm selecting specific text portion in richtextbox1 and replacing it using regex. After replacing the text, my selection is gone. I want to remain the same selection even after replace. Because I have ...
0
votes
0
answers
81
views
Rich text box replaces default Monospaced font for Box-drawing characters with Variable-width font
I have a Windows rich text box control (RichTextBox) on my form. The box has Consolas monospaced font set. For most contents the box indeed renders it with the selected font.
But when I load/set ...
1
vote
2
answers
78
views
C# WinForms slightly different vertical spacing between RichTextBox text
I'm trying to add line numbers to a homemade editor via a split view holding two RichTextBoxes. The one on the left is line numbers, and the one on the right is the actual text. However, I am seeing ...
0
votes
3
answers
54
views
Is it possible to write into a RichTextBox at a given line, column?
I have a WinForm with a RichTextBox.
I am trying to write into the RichTextBox at a given line and column:
Here is the code:
public Form1()
{
InitializeComponent();
richTextBox1 = new ...
0
votes
1
answer
47
views
Visual Basic - RichTextBox with multiple links
I'm sure I will feel stupid when I get an answer, but it's been a while since I programmed.
I am looking at having a form with a rich text box that will have multiple lines of text and among that text ...
0
votes
0
answers
32
views
how to add react clickable button element as text input along with free text in draftjs?
im aiming for a rich text input text component that enable user to type free text but also can insert tag/button-like element to the text box whenever user select something from select dialog similar ...
0
votes
1
answer
46
views
C# RichTextBox edit count character deleted
I have a RichTextBox in a C# project. Adding characters and counting the number of characters per line works.
The issue comes when I try to delete characters with the Backspace Key
I have commented ...
-2
votes
1
answer
62
views
How to (actually) load RichTextBox from VB.NET in VS2022
Have spent hours on hours exploring "solutions" that surely worked for someone, sometime, somewhere.
Alas NONE seem to work when I try to do so creating a Windows Desktop App using VB.NET in ...
0
votes
2
answers
64
views
How to convert RichTextBox.Selection.Start to int?
How to convert RichTextBox.Selection.Start to int?
In winforms, you can do this :
int i = richTextBox.SelectionStart;
How to do the same in WPF?
All I need is the int value of the start position of ...
0
votes
0
answers
25
views
What is the quickest way to get the background color of a single character in a RichTextBox?
Using WinForms, I have a RichTextBox which will hold the contents of a text file whose length will be limited only by what a RichTextBox can manage.
A section within it will be marked using a certain ...
-1
votes
1
answer
99
views
How to make some parts of a string to be bold and with different font style (size, font weight) within a WPF RichTextBox
I have below WPF RichTextBox which is bound to an MVVM property in my view model.
The property SampleText contains a string, let's say, e.g.:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...
1
vote
1
answer
73
views
Regex find and replace C# Encode a part of text in base 64
I have a qwestion. How can i find and replace a part of text using regex. If someone help me, I will be very glad. Here is the code:
Regex yourRegex = new Regex("(?<=\\[base64])(.*?)(?=\\[\\/...
0
votes
0
answers
32
views
Unordered list is populating as lines instead of bulletin point in slate editor
I implemented slate editor in my react app using the slate-react package and when clicking the unordered list in the toolbar, the contents are populated between lines instead of bulletin points.
Check ...
0
votes
0
answers
21
views
fastest way of applying color to specified line of richtextbox?
I'm making text filter.
The source text file is loaded in richtextbox.
I coded to change color of the whole sentence which contains the key-string defined in filter.
In below code, it took very long ...
0
votes
1
answer
226
views
Converting HTML to Contentful RichText
Im trying to find a way to convert HTML to RichText (preferably in python)
seems like there is only the other way around, using rich-text-renderer
After seeing there was no real solution provided ...
0
votes
0
answers
40
views
Is it possible to insert a link into a richtextbox targetting filepath to computer?
I have multiple .txt files in a folder.
I have a form where I type a keyword into a textbox that search among those .txt files when I click the button called "search".
For every match the ...
0
votes
0
answers
40
views
How can I successfully change WinForms hosted WPF RichTextBox Document Width? Document Width does not increase and wraps all text on reaching width
I am using ElementHost to host WPF RichTextBox on my Windows Forms Form. The ElementHost fills the entire Panel by DockStyle.Fill. The problem is that WPF RichTextBox doesn't change it's Document's ...
1
vote
1
answer
132
views
How to get all selected TableCell from a Table in WPF RichTextBox? I tried to get all TableCell by using TextSelection but this gives wrong results
I am new to Windows Presentation Framework, don't know most of it. Please answer with example code, how to get only all selected TableCell from a Table in WPF RichTextBox? I tried to get all the ...
0
votes
1
answer
55
views
How to apply my font in RichTextBox regardless of what fonts the .rtf source use?
This seems to be a simple task but I can't find a resource to solve. In a fresh new solution I create a single richtextbox, and add only one source for it with:
richTextBox1.LoadFile(".\\test.rtf&...
0
votes
1
answer
58
views
Count lines between two values in RichTextBox
I want to count the lines between 2 values in a Richtextbox, depending on if its easier if they are the same values or not i can edit the data which will be shown in the Richtextbox.
The Richtextbox ...
0
votes
0
answers
157
views
ActionText is displaying with html tags when displayed in rails 6
I tried looking around but couldnt find an answer to this. The only post I found that resembles my problem is here: Action Text displaying html tags However when I try to use the sanetize method I ...
1
vote
1
answer
66
views
Highlight / color text in a RichTextBox using a pattern
I'm trying to create a colorized RichTextBox based on a pattern.
The text is:
Hey, This{Red} IS A {Cyan}sample. The {Green}color is green color
Each { } contains a color which is a style for next ...
-3
votes
1
answer
384
views
Writing to a rich text box in c#
New programmer here.
I've written an application to filter out password protected files from a large collection. It is working so far...
My problem is that I am trying to get the resulting paths + ...
0
votes
0
answers
17
views
How to display a watermark after the cursor in a RichTextBox?
If I want a watermark to appear after the cursor(And the value of this text watermark can be changed to) when I type some grammatical characters in a RichTextBox, what should I do?
At present, the ...
0
votes
0
answers
16
views
How to use document.ToReactComponents using GatsbyJS and Contentful [duplicate]
I'm trying to get my rich text field to show up as rich text using GatsbyJS with contentful.
Currently it displays as markdown code but not as rich text (screenshot attached).
I believe I need to use '...
0
votes
1
answer
50
views
Rich Text Box To PNG - Wrong Line Spacings
I'm developing a WPF RICH TEXT BOX
Desktop Application.
It must work like a text editor, basically, where the user is able to change font family, size, color and line spacing and add a background ...
0
votes
1
answer
46
views
WPF Richtextbox Write to .txt file
string okunanmetin;
string Progfilepath;
private void btnSelect_Click(object sender, RoutedEventArgs e)
{
richtextboxEdit.Document.Blocks.Remove(richtextboxEdit.Document.Blocks....
1
vote
2
answers
105
views
How do I set text background color without changing cursor location?
I want to set the background color of a certain text range in a RichTextBox.
However, the only way to do that is by selecting it like that:
RichTextBox1.Select(10, 3) 'select text starting from ...
0
votes
2
answers
63
views
using C# Format colour of line in RichTextBox based on the content of the string
I am using C# for the first time and my goal is to create an application that outputs text to a window. The windows structure is defined in a .XAML file and the text in question is to be added to a ...
-4
votes
1
answer
75
views
how to resolve closing error in certain section of my code
I am using C#, when running my code it works fine until you click the red X top right(close). It only happens when this part of the program runs and you click the x, other times, when you click the x ...
0
votes
0
answers
36
views
Is there a way to add visible space between RichTextBox group of characters without adding a space character?
I am trying to display a list of pairs of hex characters in a RichTextBox that can be edited by the user. For easier editing purposes, as well as code simplicity, I am trying to separate these pairs ...
3
votes
1
answer
85
views
How do I know when the user can scroll a RichTextBox with forced ScrollBars
I need the ScrollBars to be set to ForcedBoth but I also want to know when the ScrollBars' handles are visible and the user can scroll.
A boolean for both scrollbars would do
Here the user cannot ...
0
votes
0
answers
18
views
Customize the Style of RichTextBox itself [duplicate]
How can I change the visual appearance of my RichTextBox without affecting the functionality?
Here is my XAML code for the RTB:
<RichTextBox x:Name="rtb1"
...
0
votes
1
answer
54
views
WPF new Block on WordWrap
Is there a way to add a new Block on End of a RichTextBox in WPF?
With the RichTextBox.Document.MaxPageWidth no new block are created...
Convert the RichTextBox Content to Text:
if (rtb.Document != ...
2
votes
0
answers
104
views
Changing the selection color of a RichTextBox after loading a file
I am facing a problem that prevents me from progressing in my current project.
When loading the form, I would like to display "username - login - DateTime" in a RichTextBox. But since I ...
-2
votes
1
answer
36
views
Change Style of TextSelection on WPF RichTextBox
I have a WPF RichTextBox and i'm trying to do is change the style:
FontFamily, FontSize, FontWeight, Color and some more.
I can change some of this values on the selected Text,
but i can't find a ...
1
vote
1
answer
175
views
How to remove the top line of text from RichTextBox control in WPF?
I'm working on a WPF application, where I need a space to frequently display lines of colored text, in a console-like manner (new line displays at the bottom, the rest is moving up). I've decided to ...
0
votes
1
answer
450
views
Store form of Rich Text Data using Angular & Laravel Api
I've created a form with field Rich Text Editor in angularJs using Quill-Editor.
I want to save form data along with Rich Text Editor using Laravel.
My view
<form>
<div class="form-...
0
votes
0
answers
35
views
VB .NET Fit RichTextBox width according to line length
I have a RichTextBox which shows a line of its text in every timer's tick.
I need to fit RichTextBox width with the length of each line (shrink or grow according to the viewed line length).
I tried : ...
0
votes
2
answers
113
views
.txt file to Rich text box with changes
Im going to try to make this as simple as i possible can. I work in a shipping company, where we email our clients if there is any issues with their orders. I have recently made a vb.net program that ...