Question

Is there any light version of richtextbox control? I've got to create like 300+ of them in an app which takes time, memory and slows everything down... All that I need is to have a control that will enable me changing the background/foreground of a part of the text... I'd need that in winforms... anybody know anything about some kind of replacement?

Was it helpful?

Solution

Is it read-write or read-only? If it's read-only it probably wouldn't be too difficult to code this up yourself. (Plug: I have a control which I can upload somewhere if needed :)

You could use the OnPaint event and use different brushes and pens with Rectangles and Text.

OTHER TIPS

Is this for a grid, or is it 300 fields on a single-record form? Because if it's for a form I would suggest that there is a problem with your design.

If you need it in a grid, consider a paging solution. A paging solution would allow your users to scroll through the records, and you can still use a rich textbox, because the number of rich textboxes would be limited to the number of records displayed on the current page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top