Click here to Skip to main content
15,904,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use the code realization form around shadow, attention is around, need not WPF. Using c # or vb.net. For help ,Thanks.
Posted

1 solution

 
Share this answer
 
Comments
miwuawen 31-May-12 9:30am    
Thank you ,but i want four sides have shadow.Can you help me ??
MarqW 31-May-12 9:43am    
There's a couple of ways of doing this.

1. You use GDI+ to access the DeviceContext of the screen, and draw all the shadows yourself
2. You create a new translucent form with a graphic for the the "shadows" on, and position it underneath your main form. When your main form is resized or moved, you'd need to update this form too

Hope that helps
miwuawen 31-May-12 10:16am    
I still don't understand ,please use code to instead .Thank you.
MarqW 31-May-12 10:21am    
I'm not going to write the code for you. Have a look at making a project with 2 forms, where one mimics the size of the other. Once you get that working, make the "mimic" form follow the position of the other form. Then you can look at making the mimic form borderless and transparent, and adding shadow graphics.
miwuawen 31-May-12 11:23am    
hehe ,Thank you .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900