G
Guest
I’ve created a non rectangle form by setting the FormBorderStyle, BackColor
and TransparanceKey properties and drawing on the form in the pain event or
setting the BackgroundImage.
What I would like to do is add a drop shadow to my non rectangle form. I did
a search on the Internet for how to add a drop shadow to a form, but that
only returned pages that showed how to change the ClassStyle of the form in
the overridden CreateParams procedure. This does add a drop down shadow to
the form, but it’s rectangular, and doesn’t go round the edge of my
non-rectangle form.
I’ve also tried to draw the shadow directly on the form using pen’s that
have a part transparent alpha value, but it just draws a solid line.
Can someone please show me how to add a drop shadow to a non-rectangle form
in C#. Or how to draw part transparent alpha value lines on a transparent
form where you can see what's underneath the form?
Thanks for your help.
and TransparanceKey properties and drawing on the form in the pain event or
setting the BackgroundImage.
What I would like to do is add a drop shadow to my non rectangle form. I did
a search on the Internet for how to add a drop shadow to a form, but that
only returned pages that showed how to change the ClassStyle of the form in
the overridden CreateParams procedure. This does add a drop down shadow to
the form, but it’s rectangular, and doesn’t go round the edge of my
non-rectangle form.
I’ve also tried to draw the shadow directly on the form using pen’s that
have a part transparent alpha value, but it just draws a solid line.
Can someone please show me how to add a drop shadow to a non-rectangle form
in C#. Or how to draw part transparent alpha value lines on a transparent
form where you can see what's underneath the form?
Thanks for your help.