Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton
has the Checked property, but the regular Button does not.
Simple and easy way to set View click effect.public AlphaAnimation clickAnimation() { return new AlphaAnimation(1F, 0.4F); // Change "0.4F" as per your recruitment. }
We can use CSS transform property to add a pressed effect on the button when it is active. CSS transform property allows us to scale, rotate, move and skew an element.
In order to make it a button, change type="hidden" to type="button" . To make it invisible to the user, you could use inline styles like this: style="display: none;" .
One method you can used to obtain this option is by placing a "CheckBox" object and changing its "Appearance" from "Normal" to "Button" this will give you the same functionality that I believe you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With