textbox backcolor bug?

H

Harry Simpson

I'm working in VS2005 and set the backcolor for a textbox to a color in the
properties window. Then move off the property and low and behold the color
changes in the designer but the property changes back to LightGray in the
backcolor property in the Properties Window for that control .

Actually want to set it to Transparent but of course that does nothing at
all in the designer - stays LightGray etc.

Is this a known bug in VS2005??

TIA

Harry
 
H

Harry Simpson

Actually I meant the label control not the textbox control......is there a
bug in setting this?

Harry
 
H

Harry Simpson

I searched the newsgroup first Jarod but did not see your hack:

<<
Put the label in a panel and set the panels background color. Then set
the label and the panel to the height and width needed.

Jarod


This is screwy.....so is this a bug or what?
 
J

Jarod

Label does have some really strange behavior. Color changes are
ignored. Changing the Form background color from Window to White
finally lets me change the label color but the label is then reset to
match the form background color when I close and reopen the form
designer.

Since a Button allows for arbitrary background colors I think it's safe
to assume its a bug. I can't imagine anyone at MS would think this
limitation is actually a good thing.

Jarod
 
I

Ilya Tumanov [MS]

It's a known issue in designer. You can change color in your code as a
workaround.


http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=178752&SiteID=1


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

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).
 

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