J
jarnie
I am attempting to make a form which has alpha transparency that
varies across the form, similar to the Adobe splash screens and
launchy:
http://www.launchy.net/images/screenshot_sheep.jpg
After a few different approaches, I have ended up overriding the
OnPaint method and using Graphics.CopyFromScreen and then painting the
transparent PNG on top of this using DrawImage. I have so far been
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 (or,
is there a better way of doing what I am attempting to do)?
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 in fact what I would like to achieve.
----------
Additionally, is it possible to reset all the GridItems within a
PropertyGrid to be reset, without recursively looping through each
item? I know of PropertyGrid.ResetSelectedProperty, but doesn't this
mean I'd have to select each item individually and reset it?
Finally, is it possible to deselect the current property? I tried
using PropertyGrid.SelectedGridItem = Nothing, but it throws an
error.
Thank you very much in advance,
James
varies across the form, similar to the Adobe splash screens and
launchy:
http://www.launchy.net/images/screenshot_sheep.jpg
After a few different approaches, I have ended up overriding the
OnPaint method and using Graphics.CopyFromScreen and then painting the
transparent PNG on top of this using DrawImage. I have so far been
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 (or,
is there a better way of doing what I am attempting to do)?
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 in fact what I would like to achieve.
----------
Additionally, is it possible to reset all the GridItems within a
PropertyGrid to be reset, without recursively looping through each
item? I know of PropertyGrid.ResetSelectedProperty, but doesn't this
mean I'd have to select each item individually and reset it?
Finally, is it possible to deselect the current property? I tried
using PropertyGrid.SelectedGridItem = Nothing, but it throws an
error.
Thank you very much in advance,
James