On May 10, 3:13 pm, "Martin Arvidsson, Visual Systems AB"
<martin.arvids...@vsab.net> wrote:
> Hi!
>
[quoted text clipped - 5 lines]
> Regards
> Martin
Martin,
There is no native .NET way to override the OnPaint besides inheriting
it that I know about.
You can subclass the textBox and override the WM_PAINT message using
interop services.
You can use inherit NativeWindow class and attach the window handle of
the TextBox to a it. The concrete class will override the WndProc
method and handle the WM_PAINT message in it.
Hope it helps.
Moty.
Martin Arvidsson, Visual Systems AB - 10 May 2007 15:28 GMT
Ok!
Thanx!
I think the easiest way to do it by inheritance. This way it's also easy to
maintain :)
/Martin
> On May 10, 3:13 pm, "Martin Arvidsson, Visual Systems AB"
> <martin.arvids...@vsab.net> wrote:
[quoted text clipped - 23 lines]
>
> Moty.