TextBox Backcolor in CF2

I

info

Hi!

I use VS2005 with an PocketPC Project in CF2.
As a new feature I can set an backcolor for textboxes but in runtime
they always appear grey.

Is there any known Bug ?
 
P

Peter Foot [MVP]

Are you setting Enabled = false on the control. A disabled (read-only)
TextBox will always be displayed with a grey background. The workaround is
to keep the control enabled but hook the keyboard events to prevent text
entry - search the archives of this group and you should find a number of
samples.

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

(borrowed from Ilya's sig)

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top