Freelancer: bpoojary
Del:
Anmeld Indlæg

Transparent label in WinForm

Try this it worked for me only to make label transparent, hope so you find it helpful public class TransparentLabel : Label { public TransparentLabel() { this.SetStyle(ControlStyles.Opaque, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, false); } protected override CreateParams CreateParams { get { CreateParams parms = base.CreateParams; parms.ExStyle |= 0x20; // Turn on WS_EX_TRANSPARENT return parms; } } } Source: http://stackoverflow.com/questions/605920/reasons-for-why-a-winforms-label-does-not-want-to-be-transparent You will get more information from above link (I will advice to try with WPF it would be easier with that). Regards, Dexter

Konkurrenceindlæg #19 for                                                 Label Control with Opacity (Transparency)

Offentlig Præciserings Opslagstavle

  • bpoojary
    bpoojary
    • 10 år siden

    welcome

    • 10 år siden
  • FrankUray
    Konkurrenceafholder
    • 10 år siden

    Thank you for your informations !

    • 10 år siden