Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
How can i change a form's frame or buttons?

By change, i mean colors,shapes etc..?



And i would like to change a buttons color when the cursor on it.

Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jan-13 16:24pm    
What do you mean by Form, exactly? Which buttons? Client or non-client..?
—SA
Hslldm 23-Jan-13 17:16pm    
I mean windows app forms
Sergey Alexandrovich Kryukov 23-Jan-13 17:18pm    
Got it. Well, add the tag "Forms".
Now, client-area or non-client buttons?
—SA

Thank you for the clarification of the question.

Here is the CodeProject article for you to learn about related techniques:
WinForm Extended[^].

These two CodeProject articles can also be useful:
Winforms SkinFramework[^],
WinForms Form Skin[^].

I would advise you to avoid such deep customization, as it requires P/Invoke and hence kills platform compatibility which you could have with pure FCL System.Windows.Forms library.

Enjoy,
—SA
 
Share this answer
 
Comments
Espen Harlinn 23-Jan-13 19:38pm    
5'ed!
Sergey Alexandrovich Kryukov 23-Jan-13 19:46pm    
Thank you, Espen.
—SA
It depends on the kind of application you are developing. For instance, if you are using Windows Forms then you may find this article interesting: "Shaped Windows Forms and Controls in Visual Studio .NET"[^].
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 23-Jan-13 18:23pm    
This is not exactly it, I think. OP confirmed System.Windows.Forms, but this should be... of course, very inaccurate formulation by OP... please see my answer.
—SA
Your question should be more specific to get good answers. If you are wanting to change attributes of HTML objects. If this is true you can use jQuery and CSS.

http://api.jquery.com/css/[^]

Here is a quick sample:

JavaScript
<script>
  $("Button").mouseover(function () {
    $(this).css("color","red");
  });
</script>
 
Share this answer
 
v3

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