Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# Control - Transparent Label
Message
From
10/10/2007 04:36:26
 
 
To
09/10/2007 20:32:35
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01259615
Message ID:
01259932
Views:
35
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform