简体   繁体   中英

How to apply themes to WindowsForm in C#?

This question is in my head for way too long. How this guy made a form with a custom border and custom controls without a ".dll" file or something like that. It's just a ".exe".

My question is simple: How can I do this to my forms?

在此处输入图片说明

Not sure what you mean without dll file but I would recommend checking out Drawing Custom Borders in Windows Forms

http://customerborderform.codeplex.com/

The fact that it is just a dll doesn't mean it doesn't rely on a 3rd party application. The developer could have merged them in the dll, you can check if there are resouces/assmblies merged into the dll using ILMerge or if it is a WPF app, using other means .

Other than using a 3rd party control or using GDI+ to custom draw your form/controls, there's no out of the box support for skins/themes in WinForm controls, except for what OS supports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM