Displaying rich text in a listbox (in 1.1)
- From: "Keith Patrick" <richard_keith_patrick@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 Jan 2007 13:32:35 -0600
I have a project that unfortunately has some annoying constraint of "make
sure this runs on a bunch of laptops where the users don't bother updating
their machines", so I'm stuck with .Net 1.1 WinForms (which I'm pretty
unfamiliar with because I quit using WF as soon as there was a choice
between WF 2.0 and WPF). I have items in a listbox that can be edited via
rich text, but when they display, the text gets displayed (in the listbox)
as plain, unescaped text (carriage returns show up as ASCII squares). I'm
trying to override the drawing (via DrawItem), but the only way I see to
render in RTF is to go through each character in the rich string & repaint
it in the listbox...character by character. Is there some way to just
create an RTF control and dump its graphics into the DrawItem event's
Graphics? All I can see are atomic drawing operations, but I basically need
a bitblt of an entire control
.
- Follow-Ups:
- Re: Displaying rich text in a listbox (in 1.1)
- From: BTIS Jeff
- Re: Displaying rich text in a listbox (in 1.1)
- From: ClayB
- Re: Displaying rich text in a listbox (in 1.1)
- Prev by Date: Re: Tabcontrol and validation
- Next by Date: Re: Tabcontrol and validation
- Previous by thread: Re: Tabcontrol and validation
- Next by thread: Re: Displaying rich text in a listbox (in 1.1)
- Index(es):
Relevant Pages
|