Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] How do I create a skinned resizable Form?

Started by Pipo DeClown Aug 21, 2007 at 11:18 AM 3 replies 2.1k views
Original Post
Pipo DeClown
Pipo DeClown
Hello everyone, Like the topictitle my question is what is the best way to skin a .NET Form, and making it resizable as well? By the way, is it also possible to skin a treeview (change the icons, + - buttons)? Thanks in advance, Rick
TheTroll
TheTroll
There is no built in skinning ability in .Net. There are quite a few private libraries that will do it for you but figure on paying $200.00+ for an individual license.

There are ways to do it yourself, but if you really want custom stuff you have to override the OnDraw methods and owner draw the control yourself.

Now a lot of this depends on your definition of skinning. If you are just talking about colors, locations, layout, ect. then you can do it without too much trouble by creating your own skin class that handles all of that for you. If you want to make round text boxes, and round forms, then for the most part it is to OnDraw and roll your own.

theTroll
Dave Hunt
Dave Hunt
Have a look at CustomBorderForm on CodePlex.

For skinning treeview and other controls, you will need to do as TheTroll says and derive your own controls from existing controls and override the various drawing methods (usually just OnDraw) to get the look you want.
TheTroll
TheTroll
Quote:
Original post by Dave Hunt
Have a look at CustomBorderForm on CodePlex.

For skinning treeview and other controls, you will need to do as TheTroll says and derive your own controls from existing controls and override the various drawing methods (usually just OnDraw) to get the look you want.


Just went and looked at the project and it looks like it is dead. Last update was almost a year ago. Bummer, looked like they had started something pretty nice.

theTroll

Dave Hunt
Dave Hunt
Yeah, I noticed that as well. But I figured there was enough there to get Pipo going with what he wants to do.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.