Questions tagged [richedit-control]
33 questions
7
votes
1 answer
Matching the vertical scroll position of a Grid to a RichEditBox or TextBox
I've got a Windows Store app with a RichEditBox (editor) and a Grid (MarginNotes).
I need the vertical scroll position of the two elements to be matched at all times. The purpose of this is to allow the user to add notes in the margin of the…

roryok
- 9,325
- 17
- 71
- 138
6
votes
2 answers
Converting MemoryStream to Byte Array in VB.Net
I am trying to convert the memory stream generated from richeditDocument to byte array. The code is given below:
Public Sub saveAsTemplate_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ms As MemoryStream = New MemoryStream()
…

Anish
- 1,920
- 11
- 28
- 48
5
votes
3 answers
Rich edit control sends EN_CHANGE when spellcheck underline appears
Let's say you've just set some text in a spellcheck-enabled rich edit control, and the text has some spelling errors. A split second will go by, spellcheck will kick in, and then the misspelled text will get underlined. But guess what: the rich…
user15025873
3
votes
1 answer
Rules for selecting a word in a Windows RichEdit20W control
In a MFC application I have an .rc file with this content:
IDD_PROP_TEXT DIALOGEX 0, 0, 210, 164
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif", 400, 0, 0x0
BEGIN
CONTROL "",IDC_EDIT,"RichEdit20W",ES_MULTILINE | ES_AUTOHSCROLL |…

Alessandro Jacopson
- 18,047
- 15
- 98
- 153
3
votes
1 answer
Various methods to get entire text in a rich edit control as a CString
I want to get the entire text in a rich edit control as a CString, and from my reaseach
there appear to be six ways of achieving this:
GetTextRange and get the range by using…

user3126297
- 159
- 2
- 3
- 10
3
votes
1 answer
Set background color of rich edit control 2.0 when it is created
In my app, pressing a button activates a dialog box. This dialog box contains a rich edit control 2.0. I want to set the background color of this rich edit control 2.0 to red on its creation,i.e, the default background color of this rich edit…

molu
- 77
- 1
- 11
2
votes
1 answer
Error in pdf generated using File.WriteAllBytes(filePath, byteData)
I am trying to generate pdf file using Byte Array.
The code is used is:
Public Sub SavePdf(ByVal bytes() As Byte)
Dim filePath As String = HttpContext.Current.Server.MapPath("~/ClientBin/file1.pdf")
Dim byteData() As Byte = bytes
…

Anish
- 1,920
- 11
- 28
- 48
2
votes
1 answer
How do I programmatically merge data in DevExpress RichEditControl?
I want to allow users to select from a list of predefined templates. When a template is selected, the RichEditControl (REC) displays a document formatted according to the selected template, with fields already merged. (The user never sees the…

RobC
- 1,303
- 3
- 15
- 32
1
vote
1 answer
Unable to create multiple Rich Edits using AutoIt v3.3.8.1
I am using AutoIt v3.3.8.1 for Win2K compatibility. I am trying to create a form containing multiple Rich Edits. The relevant code section is as follows:
#include
#include
#include…

thegreatjedi
- 2,788
- 4
- 28
- 49
1
vote
0 answers
Comment/Uncomment function in RichEditControl
i have created an app that will comment or uncomment highlighted line or current line and color the line w/ green. i have 2 buttons 1 for comment and one for uncomment. this is my code
DocumentRange lineRange = null;
bool isSelectionLocked =…

popoy
- 33
- 7
1
vote
2 answers
how to mark keywords in RichEditControl
I am using DevExpress RichEditControl in WindowsForm.
I am trying to let the user type sql statements.
How can I change the the color of the keyword to BLUE such as SELECT, FROM, ORDER BY hen the user types it?

Jassim Rahma
- 93
- 1
- 3
- 13
0
votes
1 answer
Devexpress RichEditControl Find function - regex throwing error
We are using devexpress RichEditControl in one of our windows applications. For searching any text in that control user has to press Ctrl + F and a small find text box comes hanging. When I type normal words and search everything works…
0
votes
2 answers
C# Change selection Font via Devexpress RichEditControl
I want to change some part of text in richEditControl Devexpress.
For Example this sentence.
"Kocaeli University Computer Engineering Department"
when i click a button this may can change that one.
"Kocaeli University Computer Engineering…

TheMuyu
- 579
- 2
- 12
- 31
0
votes
1 answer
pTextServices->TxSendMessage( EM_STREAMIN, ( WPARAM ) SF_RTF, ( LPARAM ) &editStream, &lResult ) does not call EditStreamInCallback
When calling:
pTextServices->TxSendMessage( EM_STREAMIN, ( WPARAM ) SF_RTF, ( LPARAM ) &editStream, &lResult )
editSteam.EditStreamInCallback is not being called, but if SF_TEXT is used instead of SF_RTF, then editSteam.EditStreamInCallback gets…

Antonio Linares Cañas
- 310
- 2
- 9
0
votes
1 answer
Render page breaks in DevExpress RichTextEdit
I want to be able to add and remove page-breaks to a RichEditControl element.
I understand that it's possible to add the page break by pressing Ctrl + Enter, but it's impossible for the user to see the page break and remove it, as it currently looks…

Nicke Manarin
- 3,026
- 4
- 37
- 79