Questions tagged as 'richtextbox'

1
answer

C # How to Select and Color all text within a given row in RichTextbox?

In C # I have a RichTextbox, inside it has several lines, what I want to do is to select all text within a given line and color. What I'm doing is this: richTextBox1.Select(0, richTextBox1.Lines[index].Length); richTextBox1.SelectionColor = Co...
asked by 06.01.2018 / 23:29
1
answer

help in adding text from richtextbox 1 with richtextbox2 C #

Hello, I would like to know how I do it, so that when I type in richtextbox1 the text will appear in richtextbox2 , just like if it was a line counter, every time you enter enter, only with a number itself, type a1, a9, b, c4, c5 ......
asked by 08.02.2016 / 21:49
1
answer

How to highlight a word using REGEX

I need to color in the RichTextBox a text before a string For example: "Highlight: normal highlight"     
asked by 10.01.2018 / 11:43
1
answer

RichEdit Delphi text mess up while writing to PostgreSQL database

I have tried almost everything. I have a system in DelphiXe6 with PostgreSQL, in it I have some Text type fields that I need to write formatted text (bold, italic, background color, etc.) type word, it works blz, except when I save the text f...
asked by 27.06.2018 / 16:15
1
answer

How to insert this text in PostgreSQL?

I'm using a Delphi query and I need to insert the text below into a text type field {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}{\f1\froman\fcharset0 Times New Roman;}{\f2\fnil\fcharset0 Tahoma;}} {\colortbl ;\re...
asked by 27.06.2018 / 23:32
1
answer

How to change the font in the RichTextBox?

I would like to know how do I edit the font and color of a RichTextBox word in C # and if possible how do I number the rows.     
asked by 23.07.2014 / 00:48
0
answers

How to pass information from a RitchTextBox to word document

How do I pass the information that is in a RichTextBox to a word document in C #. Code: String strtxt = rtbVertigo.Text; TextWriter sw = new StreamWriter(@"D:\Users\edv\Desktop\WORD\Vertigo.doc"); sw.WriteLine(s...
asked by 21.05.2018 / 17:23
1
answer

What is the safe way to work with TRicheEdit Database?

I'm asking this question because the days I'm having a huge headache with this RichEdit junk, time it saves correct time it saves a lot of ???????????? in the base ... I know it may be an error in the conversion of characters but the detail is t...
asked by 03.05.2018 / 20:20
0
answers

RTF table border size

I'm doing a simple RTF editor (with RichTextBox ). I'm working on the editing part of tables, the code to insert them is ready: private void InsertTableInRichtextbox(int rows, int columns,int csize) { //CreateStringBuilder o...
asked by 23.03.2018 / 20:59
1
answer

Why does the array get too many lines?

private void abrirLabirintoToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog Abrir = new OpenFileDialog(); Abrir.ShowDialog(); string CarregaArq = null; string teste = null; //s...
asked by 16.03.2018 / 01:34