TextBoxRenderer is for rendering visual styles. You must be running on
XP or later, and have visual styles enabled in your app, and in the OS.
ControlPaint is only for non-visual style rendering.
Tony
> All,
>
> Does anyone know how to paint a TextBox like using the TextBoxRenderer (.NET
> 2.0) namespace - BUT by using the ControlPaint class
>
> Brendon
Brendon Bezuidenhout - 07 Dec 2006 20:57 GMT
Yes yes I know this :)
I was thinking of being able to do
<code="Pseudo">
ControlPaint.DrawTextBox(params)
</code>
But you can't :(
ta Bendon
> TextBoxRenderer is for rendering visual styles. You must be running on
> XP or later, and have visual styles enabled in your app, and in the OS.
[quoted text clipped - 9 lines]
>>
>> Brendon