Zakukashi does not currently provide support for this item.

7 comments found.

This would be awesome, but I can’t get it to show in my toolbox no matter what I try…I have followed the directions using both methods exactly. Any thoughts? Thank you.

Very strange, What version of Visual Studio are you using? and are you working with the C# or zButton?

hi. I got it in by adding the project to mine (VS2010 Ult), so that part is fine…Now I only have the issue that it won’t accept new text (inside the button)...I am working in vb

You can see it here:

Well im unsure why your Toolbox wont show it. Dragging and dropping the zButton.vb into your Solution Explorer, then going to “build -> Build Solution” it should refresh your toolbox and it should end up being right up top Within the “components compartment” with a blue gear as the symbol.

For the text, some also had issues with the Text part, but alternatively you can set/get the “GlowText” property its the same as the Text property.

Perfect! Thank you. All is working now…Thank you for the excellent support!

Your welcome! feel free to email/Comment me if you have any further issues.

Eh. The code could be useful for those who want to learn some simple drawing techniques – path fills, gradients, etc. but beyond that, this thing isn’t ready for production use.

The issues are numerous. I’ll point out but a few:

1. The C# code doesn’t raise events (except those inherited from Control). The author has included notes saying that “Handles clauses are not supported in C#”. I’m not certain what he means by this, but I am certain it’s not true. I reworked all of the methods that included this note so they will raise the appropriate events.

2. Many properties have strange and/or unexplained names. For example, ThemeColor and GradientColor. It is not at all obvious to a caller what these are. I have no idea what a theme is. A gradient consists of at least two defined colors (start color and end color), so why is there just a property “GradientColor” ?? As it turns out, ThemeColor and GradientColor actually mean StartColor and EndColor.

3. Standard properties are sometimes overridden with identical but renamed properties. For example, setting the “Text” property does nothing while setting the “GlowText” property works. Why did we change the name of the Text property? It is a standard property name that virtually everything implements.

4. What on Earth does “GradientStrength” mean? It appears to vary the distance across which the gradient is drawn so that the control acts as a viewport to a gradient that stretches larger than the control. Its behavior is quirky at best.

5. Opacity is implemented as an int whereas for everyone else opacity is a double between 0 and 1. What the control calls “opacity” is really the value of the alpha channel the control uses when creating brushes and pens. At the vary least opacity should have been implemented as a double and mapped to alpha – > (int)(_opacity * 255)

6. And the biggest problem: There is precisely ZERO error handling in the code. If you set a value out of range (try setting Opacity > 255) and it blows up with an unhandled exception.

All in all it would not have been a bad effort for someone exploring drawing in .NET. But this is certainly not ready for commercial sale.

Hi, Do you have an updated .NET 4.5 version?

Thanks you very much for script! :D

You can make more script for other components?

PS: This script is compatibility with WIN 8/7/Visa/XP?

Thanks, Alex

Its possible to make similar tool for WPF ? WPF styles for buttons, labels, ..?