Search code examples
c#winformsbackgroundtransparencyalphablending

Transparent PNG background in Windows Forms (Alpha blend mode)


Is there any new or easier way to edit the Alpha Blend Mode in Windows Forms so that transparent PNG images with "shadow" can be used as a background image for the Windows Form while persisting complete transparency and shadow effect?

NB:-

  • I've tried the TransparentKey and
  • OverRiding OnPaintBucket too

Solution

  • Over time I realise that for a more intuitive and elegant UI, Windows Presentation Foundation (WPF) offers more possibilities, than Windows Forms.

    Nonetheless, there are several Windows Forms libraries available to suit the need for elegant UI in windows desktop programming. e.g DevExpress etc

    Also here is an article posted on CodeProject attempting the Windows Forms Alpha blend mode