Click here to Skip to main content
15,666,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I’m using a RichTextBox.
How can I change the version of RichEdit in the RichTextBox?

I’ve overriden the CreateParams property.
The default values I see are as follows:

ClassName: "RichEdit20W"
ClassStyle: 8
ExStyle 512
Height: 96
Param: null
Parent: 0x00000000
Style: 1442906560
Width: 100
X: 0
Y: 0

How do I change the version of the RichEdit control?
Any Ideas?

I’m currently using:
VS Professional Version: 2017
.NET Version: 4.7.03062
Windows 10



What I have tried:

I tried playing around with the ClassName (RichEdit30W, RichEdit40W, etc.) but that didn't work.
I have no idea with I'd set ClassName to anyway or how to find out what to set it to if that is what needs to be changed.
Updated 26-Feb-19 21:09pm
Maciej Los 27-Feb-19 3:09am    
RichTextBox for WinForm or WPF or... Which one?
Simmerliner 27-Feb-19 7:01am    
Thanks Maciej Los;

WinForms. :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900