Click here to Skip to main content
12,896,108 members (50,394 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
I want to create raised and sunken effect for button. As bitmap effects are obsolete in framework 4.0 am not able to do so. Everybody says Effect is alternative to this but i am not getting solution how to get solution for my question. Can any body tell me, how to create raised effect without bitmap effect or using Effect.

waiting for reply.
Posted 21-Nov-12 20:28pm
What is "button" exactly. There are different classes named "Button". Full name, please. In other words, tag your UI library. The problem is quite solvable, but the solution would be very different for different kinds of UI...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well you could do what I do for Compact Framework (Due to limitations on UI Controls)

I place a Label behind the button, so it appears as a drop shadow, and due to everything in Windows 8 being flat, I guess that would be not needed for very long.


Similar to that where o = button and x = label

I usually have the label 3 cursor presses up and 3 to the right. But have a play around...
Rupali Jadhav 24-Nov-12 5:41am
Thanks for your suggestion, it will work fine for button but now i want to use this effect for other user defined controls. Any other suggestion please.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100