Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VisualStudio2012
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 23-Jan-13 11:14am
Hslldm393
Comments
Sergey Alexandrovich Kryukov at 23-Jan-13 16:24pm
   
What do you mean by Form, exactly? Which buttons? Client or non-client..?
—SA
Hslldm at 23-Jan-13 17:16pm
   
I mean windows app forms
Sergey Alexandrovich Kryukov at 23-Jan-13 17:18pm
   
Got it. Well, add the tag "Forms".
Now, client-area or non-client buttons?
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Comments
Espen Harlinn at 23-Jan-13 19:38pm
   
5'ed!
Sergey Alexandrovich Kryukov at 23-Jan-13 19:46pm
   
Thank you, Espen.
—SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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"[^].
  Permalink  
v2
Comments
Sergey Alexandrovich Kryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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:
 
<script>
  $("Button").mouseover(function () {
    $(this).css("color","red");
  });
</script>
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100