Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there any simmilar class/library for CButton like this: Rich Design Time Editing with UITypeEditors (VB.NET)[^]

Thanks

[Edit - supplementary question from OP, moved from an answer (since deleted)]
Thanks for your answers so i decided to do it in C# WPF, but one question how i can use like in VB where u use DimColorHoover = number in there. To when mouse is on button color is just bright not to its default form color.
[/Edit]
Posted
Updated 26-Mar-11 8:21am
v4

System.Windows.Forms.Button (for System.Windows.Forms), System.Windows.Controls.Button (for WPF). You should can subclass those classes (or rather their base classes). Alternatively (usually better way) you subclass Control (both libraries have such class, Button is derived from it indirectly).

[EDIT]

The follow-up Question on mouse hovering behavior is answered as a separate Answer.

—SA
 
Share this answer
 
v4
Comments
Henry Minute 25-Mar-11 22:15pm    
The OP has asked a further question, I have moved it into the original.
Sergey Alexandrovich Kryukov 25-Mar-11 23:10pm    
Thank you very much, Henry, already answered.

(Hope you like my new Answer, especially *appropriate reference* :-) I'm downloading using your reference on algorithms... let me see what is that...

--SA

P.S.: Henry, I'm repeating this reply only because I misplaced it in first place.
I have not gone through the link but if that is there in VB.Net, then you can add a reference to that dll in your C# project and use it right away.
 
Share this answer
 
Comments
Henry Minute 25-Mar-11 22:13pm    
Hi, d@nish, are you OK?
Henry Minute 25-Mar-11 23:02pm    
:))
dan!sh 26-Mar-11 1:00am    
Hi Henry, I am doing great and wish you are doing better than me...just came back to web world after good 10-12 technology-less days. Thanks for asking. :)

Henry Minute 26-Mar-11 1:01am    
Good to know. :)
Answering the follow-up Question: how to handle mouse hovering over the control either override System.Windows.Controls.Control.OnMouseEnter/OnMouseLeave or handle events System.Windows.Controls.Control.MouseEnter/MouseLeave.

Now I have a question to OP: how long do you plan to ask questions like that, on every feature you may possibly need? After all, look at the help on the class System.Windows.Controls.Control and ask some real questions if you still have problems. Just in case, take a look at System.Windows.FrameworkElement and related stuff.

See
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.aspx[^]…

Do I have to explain how to do it? I can, always keep appropriate reference handy…

—SA
 
Share this answer
 
v5

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