write.as

Custom Button Control with Gradient Colors and Extra Image ()



Buy custom article

It's soooooo usable !

Excelent work SSDiver

I'd like to ask a Q however (if I may be so bold!)

Is there a way of invoking the 'Design-Time ComponentModel Pop-Up' (CButton Tasks) during runtime ? Ie - a user right-click event on a button that could invoke the nice design-time poperties ?

I thank you in advance.

* Oh - I notice that somebody else asked the same thing ! * This would make our collective day !

I googled a bit on the subject, and if it is possible it probably wouldn’t be easy. https://math-essay.com was to just make a dialog form to mimic the function of the smart tag task pop up that can open up from a context menu strip. For more control use the propertygrid control or a combination of both ideas.

Hi. This is wonderful and very usefull control.

Anyway problem is:

Color of button is changed:

Then color is changed, but is visible only when i MouseOver on changed button. Also to note that my buttons are all dynamic and created during run time.

Anybody have a suggestion on what I am doing wrong. Thank you.

Ok, I've figured out, alpha was the problem.

Great resource, and thank you for creating this.

Sorry, been busy and haven't been able to check messages. If you or anyone needs this. add this to the Text Property

Please can someone provide the steps I need to follow to get this into my VS 2010 project so that I can add the control to my form?

Crazy thing is I have used this control before in a project and all was fine, but I cannot for the life of me remember the steps.

Serious brain fade I'm afraid.

Many apologies for the dumb question.

Found a reply further down on Page 11 that gives these steps.

I will follow that and hopefully solve my memory loss!!

Okay, progress . to a point!

First issue was that I cannot rebuild the DLL as the steps suggest as I am running VS2010 and obviously the project in the zip is from a later version as it will not allow me to open the solution to rebuild. I chose to ignore the rebuild step and just use the DLL that was there - all well and good and I got the control into the Toolbox.

However, when I try to build the application that uses the CButton control, I get a compilation error "Unable to emit assembly: Referenced assembly 'CButtonLib' does not have a strong name".

Any ideas how to get round this bearing in mind that I cannot rebuild .

For mouseover (hover) and clicking, your program provides the options DimFactorHover and DimFactorClick.

However these are staying within the same color sets.

I wonder if it is possible to select or create other mouseover and click (gradient) colors. For example if the normal button has a (gradient) gray color, on mouseover it should change to (gradient) blue or any other color.

How is it possible to get that result within the actual CButton. Is it possible to change existing code in the button class? If not is there a chance this becomes integrated in a next build of your custom button?