Translucent Forms with PNGs (updated request)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Arnold

    #1

    Translucent Forms with PNGs (updated request)

    I am attempting to make a form which has alpha transparency that
    varies across the from, similar to launchy:


    After a few different approaches, I have ended up overriding the
    OnPaint method and using Graphics.CopyFr omScreen and then painting the
    transparent PNG on top of this using DrawImage. I have so far being
    able to get the same effect when stationary, but there are 2 issues:

    (1) As you drag the form, there is a slight delay between the form
    being moved and the background being drawn. With launchy, the effect
    is fluid and there is no delay.

    (2) If the content behind the form changes it doesn't show. Is there
    any way to trigger a repaint when any forms behind my form change?

    Any help please? I have had a look at the 'Vista' form on CodeProject,
    which appears to be ideal - but I don't know C# and don't have a
    compiler to see if the effect is infact what I would like to achieve.

Working...