Click here to Skip to main content
13,143,459 members (34,749 online)
Rate this:
Please Sign up or sign in to vote.
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.

Posted 23-Jan-13 10:14am
Sergey Alexandrovich Kryukov 23-Jan-13 16:24pm
What do you mean by Form, exactly? Which buttons? Client or non-client..?
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?
Rate this: bad
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.

Espen Harlinn 23-Jan-13 19:38pm
Sergey Alexandrovich Kryukov 23-Jan-13 19:46pm
Thank you, Espen.
Rate this: bad
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"[^].
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.
Rate this: bad
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.[^]

Here is a quick sample:

  $("Button").mouseover(function () {

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
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