Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BackColor does not work
Message
De
24/08/2010 13:04:03
 
 
À
24/08/2010 12:25:40
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01477913
Message ID:
01478178
Vues:
33
>This did not work as you expected it to in VS2008 either, so it's not a VS2010 issue. Basically I think what happens is that behind the scenes the BackColor of the label takes on the BackColor of its Parent ... it's not really Transparent. If the Parent.BackColor changes, the label.BackColor get changed to match it "behind the scenes". So, typically the label would retain the Form's BackColor. Once you changed the Parent of the Label to the PictureBox, then it correctly uses the image as its BackColor.
>
>Unfortunately, the PictureBox is not a container control, so there's no drag-and-drop way to make it the Parent of the Label.You're stuck having to code it. However ... if you had used a Panel instead of a PictureBox, it would have worked with drag-and-dropping the label into the Panel. A Panel can have an image background.

Thank you
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform