> Hello all, I have a question. Is there an easy way (not doing custom
> control) to change de default (or do it manually) backcolor of a
> read-only textbox?? Because it paints a ugly gray although you change
> the backcolor.
i don't think so - this is a problem on PC too
you can maybe work-around that problem:
1.) making it NOT readonly
2.) place an event-handler for the Keydown, keyup, keypress and simply
catch all key-events (set e.handled = true)
now you can focus in that control but can't type anything... maybe that
will work for you?
Boris
it is not a clean solution, but It may works.
Thanks.
Jorge Ochoa.
> Thanks Boris,
>
> it is not a clean solution,
of course not - that's why i called it a "work-around" ;-)
good luck
Boris
You can work around this on the desktop by manually changing the background
color (to something else then back to Window). Unfortunately this doesn't
work with NETCF. You may be able to get the desired effect with a label,
though.
Thanks,
Ryan Chapman
Software Development Engineer
.NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
--
Regards,
Maarten Struys, eMVP
PTS Software bv
www.opennetcf.org | www.dotnetfordevices.com
"Ryan Chapman [MSFT]" <rya...@online.microsoft.com> wrote in message
news:tIFFHKVB...@cpmsftngxa06.phx.gbl...
> Hi All,
>
> You can work around this on the desktop by manually changing the
background
> color (to something else then back to Window). Unfortunately this doesn't
> work with NETCF. You may be able to get the desired effect with a label,
> though.
>
> Thanks,
>
> Ryan Chapman
> Software Development Engineer