I'm inherting from the winform [TextBox] control. I'm wanting to override
the OnPaintBackground paint a custom background, however these method are
not being called.
Is the TextBox doing something funny in it's implementation or am I missing
something here? What would be the correct way to go abount painting a
custom background on the TextBox?
Many thanks!
===
Phil
(Auckland | Aotearoa)
Alex Kazovic - 01 Oct 2004 14:40 GMT
Phil
I have a similar problem with listboxes. The only way to have any effect is
to set ControlStyles to
UserPaint. That has an effect but doesn't work. I believe certain controls
(such as textbox and list box) paint their backgrounds differently from
other controls.
Alex
> I'm inherting from the winform [TextBox] control. I'm wanting to override
> the OnPaintBackground paint a custom background, however these method are
[quoted text clipped - 9 lines]
> Phil
> (Auckland | Aotearoa)
Sijin Joseph - 01 Oct 2004 18:25 GMT
Seems like that is a recognized problem
http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=17588
http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=2246
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
> I'm inherting from the winform [TextBox] control. I'm wanting to override
> the OnPaintBackground paint a custom background, however these method are
[quoted text clipped - 9 lines]
> Phil
> (Auckland | Aotearoa)
Phil Jones - 01 Oct 2004 23:50 GMT
Rat! Don't suppose anyone know of any textbox control's that are 100%
managed code per chance?
Many thanks people!

Signature
===
Phil
(Auckland | Aotearoa)