Is it possible to hijack a RichTextBox's Paint method in such a fashion as
to get the RichTextBox's paint logic to operate on another control's display
surface? If so, how? The task I'm trying to accomplish is to include a
RichTextBox column in a DataGridView. The problem is, DataGridView cells
don't readily lend themselves to being derived from a RichTextBox so I have
the choice of re-inventing RichTextBox painting in code or somehow getting
the results of a RichTextBox's paint back to my DataGridViewCell derived
control. My thought is, I can do this by copying the RichTextBox's rendering
from its own display surface over to the cell's display surface or pass the
Graphics object (or maybe the HDC?) from the cell into the RichTextBox's
Paint method. Any ideas how to do this?
--
Richard Lewis Haggard
www.Haggard-And-Associates.com