Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows form drop shadow??

Status
Not open for further replies.

gorgor

Programmer
Aug 15, 2002
164
US
I have a windows form that I'm trying to give a drop shadow using .NET. I've tried a million things with regions, opacity, transparencykey's, brushes, pens, bitmaps, etc. I haven't been able to get anything to work.

Anyone have any insight how to give a windows form a drop shadow? (Much like you would see from a tooltip in XP's windows explorer)
 
Thanks for the link. The method I came up with for rendering shadowed forms looks pretty much the same as theirs. Looks like using 2 windows overlapped is about the only way to do it with any consistency. I'm going to follow up with another thread because I have one thing that I'm still hung up on.

Thanks again!
 
If I can add something. One thing that I have been experimenting with on the BalloonWindow library is using the built-in shadow capabilities of the OS, as well as the overlapping windows.

If your application will be running on a version XP or greater, you could also use the CS_DROPSHADOW style in your application. It has been a while since I experimented, but you can override the CreateParams method of your form to provide this style for when it renders.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top