Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# Control - Transparent Label
Message
De
10/10/2007 04:36:26
 
 
À
09/10/2007 20:32:35
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01259615
Message ID:
01259932
Vues:
34
Hi Bonnie,

>Yes, but my point is that it works fine when placed in a proper container control ... a Form, a UserControl, a Panel. Just not for a PictureBox>>>

PictureBox (as a Control) should support visual containment:
Label lt = new Label();
lt.Text = "Hello World";
lt.BackColor = System.Drawing.Color.Transparent;
lt.Location = new Point(100, 100);  // or whatever
PictureBox.Controls.Add(lt);
Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform